Re: dependency tree on installed packages

2012-06-23 Thread Andrei POPESCU
On Mi, 20 iun 12, 20:55:09, Artifex Maximus wrote:
 
 I think the continuous upgrade process from the early stage of Wheezy
 left some unneeded packages. This is normal as I started early just
 want to clean out my system. Maybe I am wrong on base idea but would
 like to check and look for some utility to make it easier. I there is
 no such utility I will compare line-by-line as last resort.

Not what your looking for, but my way of cleaning up is to use 
aptitude's interactive mode and mark all packages automatically 
installed. Then I press 'g' once (this is important), go through the 
list of packages to be removed and use '+' to mark them to be kept and 
manually installed.

I'm doing at least two or three passes, first time marking just packages 
that are very important to me and then consecutive passes marking 
packages less important. It's easier if I just 'q' after each pass and 
press 'g' again, to get a shorter list.

Package relations can be seen in aptitude with 'r' (reverse 
dependencies) and 'd' (dependencies).

See also debtree.

Hope this helps,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


dependency tree on installed packages

2012-06-20 Thread Artifex Maximus
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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAPkuXvE2daRv1rmGy3POhCJ4t5_LU=H3pzO+_nOWLQ=36rz...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Keith McKenzie
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 debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAL36VG=ozqno5pu_kvhvsctcrwfvp6cnjvcgtybujz5wv5q...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Artifex Maximus
On Wed, Jun 20, 2012 at 1:21 PM, Keith McKenzie km3...@gmail.com 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 debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/capkuxvfby7egf62o+f3sp2wkrjcoouonugrq1yznmuccm+w...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Darac Marjal
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 debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120620124915.gb10...@darac.org.uk



Re: dependency tree on installed packages

2012-06-20 Thread Teemu Likonen
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
 --installed. I am stuck.

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

aptitude -F%p search '~i'


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87lijidu3h@mithlond.arda



Re: dependency tree on installed packages

2012-06-20 Thread Claudius Hubig
Hello Artifex,

Artifex Maximus artife...@gmail.com wrote:
 On Wed, Jun 20, 2012 at 1:21 PM, Keith McKenzie km3...@gmail.com 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


signature.asc
Description: PGP signature


Re: dependency tree on installed packages

2012-06-20 Thread Artifex Maximus
On Wed, Jun 20, 2012 at 2:49 PM, Darac Marjal mailingl...@darac.org.uk wrote:
 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'.

This depends output looks very close to what I would like but
--installed does not works with depends for me even man page says so.

# dpkg --list | grep 0ad
# apt-cache --installed depends . | grep 0ad
0ad
0ad-data
0ad-dbg
# apt-cache --installed depends . | egrep -v '^ ' | wc -l
47121

Bye,
a


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/capkuxvewqkep50j4qjhom71my-7x5mhk6wfjjyzmsljbqwp...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Artifex Maximus
On Wed, Jun 20, 2012 at 2:51 PM, Teemu Likonen tliko...@iki.fi wrote:
 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
 --installed. I am stuck.

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

    aptitude -F%p search '~i'

Thanks but not really what I want. Its output is close to dpkg --list
and nothing about dependency which I would like.

Bye,
a


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/capkuxvehyro-pkqnxmmjuopnqo_d7chn83ymg5fyxcrjyxj...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Artifex Maximus
Hello,

On Wed, Jun 20, 2012 at 3:12 PM, Claudius Hubig debian_1...@chubig.net wrote:
 Hello Artifex,

 Artifex Maximus artife...@gmail.com wrote:
 On Wed, Jun 20, 2012 at 1:21 PM, Keith McKenzie km3...@gmail.com 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.

Thank you. dpkg -l writes out all installed packages but not the
relations between them. I did similar comparison between systems but
seeing the differences in a tree makes this process easier because I
can cut leafs if I know there is related or not to my later
installation. If I compare packages line-by-line without any relation
I do not know that any extra or missing packages is related to other
packages or might standalone packages.

I think the continuous upgrade process from the early stage of Wheezy
left some unneeded packages. This is normal as I started early just
want to clean out my system. Maybe I am wrong on base idea but would
like to check and look for some utility to make it easier. I there is
no such utility I will compare line-by-line as last resort.

Bye,
a


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAPkuXvEF34-EcG-jPck3J-hNrNrmDj2MW+N2Ro=veq4hrqy...@mail.gmail.com



Re: dependency tree on installed packages

2012-06-20 Thread Claudius Hubig
Hello Artifex,

Artifex Maximus artife...@gmail.com wrote:
 Thank you. dpkg -l writes out all installed packages but not the
 relations between them. I did similar comparison between systems but
 seeing the differences in a tree makes this process easier because I
 can cut leafs if I know there is related or not to my later
 installation. If I compare packages line-by-line without any relation
 I do not know that any extra or missing packages is related to other
 packages or might standalone packages.

I was implying to feed this output into higher level tools to
generate dependency graphs for you.

 I think the continuous upgrade process from the early stage of Wheezy
 left some unneeded packages. This is normal as I started early just
 want to clean out my system. Maybe I am wrong on base idea but would
 like to check and look for some utility to make it easier. I there is
 no such utility I will compare line-by-line as last resort.

If you simply want to clean out your system, have a look at deborphan.

Best regards,

Claudius
-- 
I am NOT a kludge!  I am a computer!
-- tts
http://chubig.net  telnet nightfall.org 4242


signature.asc
Description: PGP signature