Is there a way to list the packages installed by explicit request but
*not* automatically? I.e.:
Suppose I installed packages aaa, bbb, ccc, etc.
Theses packages caused aaa1, aaa2, bbb1, ccc1, etc. also to be installed
as dependencies.
I want a command (way) to display the packages aaa, bbb, ccc, etc. but
not the aaa1, aaa2, bbb1, ccc1, etc.
Thanks.
No! I have tested all forms of dpkg I know and could not find what I
need. May be I am missing something however.
For ex. I installed tk8.5. So tcl8.5 was also installed as tk8.5 depends
on it. "dpkg -l" displays *all* packages installed, including tcl8.5
which I didn't request to be installed.
> Is there a way to list the packages installed by explicit request but
> *not* automatically? I.e.:
You read the notebook you maintained while adding packages.
What's that you say, you didn't keep a notebook? Tut-tut.
Try this:
aptitude search '~i!~M'
This only works if you consistently used aptitude to install packages.
Read the aptitude manual (/usr/share/doc/aptitude) to find out the
search pattern rules.
> Read the aptitude manual (/usr/share/doc/aptitude) to find out the
> search pattern rules.
>
Thanks. That works (I missed the "not" operator when I first read the
doc). "not automatic installed" is the answer.
No I'm not sure about what I said above, but my memory of Sarge's
apt-get was that it wasn't aware of the difference between automatically
and purposefully installed packages. The apt-get on my Etch system does
not document an "autoremove" command.
Anyway, I'm glad you got it sorted out.
I did some tests and yes: Automatically installed packages are handled
by all package managers I tried - apt-get, aptitude, adept and synaptic.
Unfortunately only apt-get and aptitude support the autoremove feature!
At least I couldn't find how to do it using the GUI ones!
Yes. synaptic too. At least for kubuntu 8.04.
BTW, not so sure about adept however. I did something confuse on my 1st.
try :-(