Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

List requested packages

3 views
Skip to first unread message

Paulo da Silva

unread,
May 10, 2008, 1:53:27 PM5/10/08
to
Hi!

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.

Message has been deleted

Paulo da Silva

unread,
May 10, 2008, 2:56:41 PM5/10/08
to
sk8r-365 escreveu:
> Feverishly pounding upon a keyboard Paulo da Silva typed:
> Is this what you're seeking?
>
> man dpkg
>

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.

Dave Uhring

unread,
May 10, 2008, 3:12:13 PM5/10/08
to
On Sat, 10 May 2008 18:53:27 +0100, Paulo da Silva wrote:

> 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.

Mumia W.

unread,
May 10, 2008, 4:47:22 PM5/10/08
to

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.


Paulo da Silva

unread,
May 10, 2008, 10:14:25 PM5/10/08
to
Mumia W. escreveu:
Are you sure? apt-get is aware of automatically installed packages. Look
for example at "apt-get autoremove".

> 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.

Mumia W.

unread,
May 10, 2008, 10:58:58 PM5/10/08
to
On 05/10/2008 09:14 PM, Paulo da Silva wrote:
> Mumia W. escreveu:
>> [...]

>> Try this:
>>
>> aptitude search '~i!~M'
>>
>> This only works if you consistently used aptitude to install packages.
> Are you sure? apt-get is aware of automatically installed packages. Look
> for example at "apt-get autoremove".
> [...]

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.


Paulo da Silva

unread,
May 13, 2008, 12:59:06 PM5/13/08
to
>> This only works if you consistently used aptitude to install packages.
> Are you sure? apt-get is aware of automatically installed packages. Look
> for example at "apt-get autoremove".
>


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!

Message has been deleted

Paulo da Silva

unread,
May 14, 2008, 2:51:18 PM5/14/08
to
Martin Schnitkemper escreveu:
> · Paulo da Silva <psdas...@esotericaX.ptX> schrieb:

>
>> I did some tests and yes: Automatically installed packages are handled
>> by all package managers I tried - apt-get, aptitude, adept and synaptic.
>
> synaptic too? So far as I realized, all packages installed using synaptic
> are marked as "manual" even if they were selected to resolve dependencies,
> so a later attempt of automatic remove of these packages with aptitude or
> apt-get fails.


Yes. synaptic too. At least for kubuntu 8.04.

BTW, not so sure about adept however. I did something confuse on my 1st.
try :-(

0 new messages