dependency tree on installed packages

June 20th, 2012 - 06:10 am ET by Artifex Maximus | Report spam
Hello!

My Wheezy was installed on a very early stage any I would like to
compare packages against a fresh installation to see what is different
or changed. Probably nothing but would like to verify. Therefore I
would like to make a dependency tree (graph) on installed packages
under Wheezy for both (my older and a fresh) installation. On the two
dependency trees I am able to find differences between them because
packages by packages compare is not enough I think.

I have made some google and found that debtree and apt-cache might do
that. But do not. Or not exactly what I would like. debtree needs a
package name for graph but I need all my installed packages (no --all
or asterisk parameter) not just some and apt-cache makes tree from all
packages Debian has even I specify the parameter --installed. I am
stuck.

Any other idea for what I would like to do? Script or application or
just hint. Anything.

Bye,
a


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAPkuXvE2da...OWLQ6rzQvA@mail.gmail.com
email Follow the discussionReplies 10 repliesReplies Make a reply

Similar topics

Replies

#1 Keith McKenzie
June 20th, 2012 - 07:30 am ET | Report spam
apt-cache dump | grep Package:
apt-cache dump | grep Version:

Those will get 2 separate lists of installed software names & versions.

Maybe that will get what you want in a roundabout way. :-)



Sent from FOSS (Free Open Source Software)
Debian GNU/Linux


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAL36VG=
Replies Reply to this message
#2 Artifex Maximus
June 20th, 2012 - 08:40 am ET | Report spam
On Wed, Jun 20, 2012 at 1:21 PM, Keith McKenzie wrote:
apt-cache dump | grep Package:
apt-cache dump | grep Version:

Those will get 2 separate lists of installed software names & versions.

Maybe that will get what you want in a roundabout way.  :-)



Thank you. Unfortunately it gives all Debian packages not just installed.

# apt-cache dump | grep Package: | wc -l
47121
# apt-cache --installed dump | grep Package: | wc -l
47121
# dpkg --list | wc -l
2481

Bye,
a


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAPkuXvFbY7...1YZNMUccm+
Replies Reply to this message
#3 Darac Marjal
June 20th, 2012 - 08:50 am ET | Report spam
On Wed, Jun 20, 2012 at 12:08:39PM +0200, Artifex Maximus wrote:
Hello!

My Wheezy was installed on a very early stage any I would like to
compare packages against a fresh installation to see what is different
or changed. Probably nothing but would like to verify. Therefore I
would like to make a dependency tree (graph) on installed packages
under Wheezy for both (my older and a fresh) installation. On the two
dependency trees I am able to find differences between them because
packages by packages compare is not enough I think.

I have made some google and found that debtree and apt-cache might do
that. But do not. Or not exactly what I would like. debtree needs a
package name for graph but I need all my installed packages (no --all
or asterisk parameter) not just some and apt-cache makes tree from all
packages Debian has even I specify the parameter --installed. I am
stuck.



It looks like "apt-cache --installed depends ." should do what you want.
If it's doing what you want, but for all packages, then that seems like
a bug to me (the --installed parameter says "Limit the output of depends
and rdepends to packages which are currently installed"). Note that
"--installed" only works with 'depends' and 'rdepends'.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
Replies Reply to this message
#4 Teemu Likonen
June 20th, 2012 - 09:10 am ET | Report spam
Artifex Maximus [2012-06-20 12:08:39 +0200] wrote:

debtree needs a package name for graph but I need all my installed
packages (no --all or asterisk parameter) not just some and apt-cache
makes tree from all packages Debian has even I specify the parameter



I may have misunderstood what you are asking but maybe this:

aptitude -F%p search '~i'


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
Replies Reply to this message
#5 Claudius Hubig
June 20th, 2012 - 09:20 am ET | Report spam

Hello Artifex,

Artifex Maximus wrote:
On Wed, Jun 20, 2012 at 1:21 PM, Keith McKenzie wrote:
> Those will get 2 separate lists of installed software names & versions.
# dpkg --list | wc -l
2481



Why don’t you use the output of dpkg -l? Also check man 1 dpkg-query.

Best regards,

Claudius
A diplomatic husband said to his wife, "How do you expect me to remember
your birthday when you never look any older?"
http://chubig.net telnet nightfall.org 4242





To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search