vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| Feverishly pounding upon a keyboard Paulo da Silva typed: > 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. Is this what you're seeking? man dpkg dpkg-query actions See dpkg-query(1) for more information about the following actions. dpkg -l | --list package-name-pattern ... List packages matching given pattern. dpkg -s | --status package-name ... Report status of specified package. dpkg -L | --listfiles package ... List files installed to your system from package. dpkg -S | --search filename-search-pattern ... Search for a filename from installed packages. dpkg -p | --print-avail package Display details about package, as found in /var/lib/dpkg/available. dpkg -L totem /. /usr /usr/share /usr/share/doc /usr/share/doc/totem /usr/share/doc/totem/README /usr/share/doc/totem/copyright /usr/share/doc/totem/changelog.gz /usr/share/doc/totem/NEWS.gz /usr/share/doc/totem/changelog.Debian.gz dpkg -l totem Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version +++-=========================-=========================- ii totem 2.16.5-3 Description ================================================== ================ A simple media player for the Gnome desktop (dummy package) -- sk8r-365 And after a while came unto him they that stood by, and said to Peter, Surely thou also art one of them; for thy speech bewrayeth thee. -- Matthew 26:73 |
| |||
| sk8r-365 escreveu: > Feverishly pounding upon a keyboard Paulo da Silva typed: >> 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. > > 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. |
| |||
| 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. |
| |||
| On 05/10/2008 01:56 PM, Paulo da Silva wrote: > sk8r-365 escreveu: >> Feverishly pounding upon a keyboard Paulo da Silva typed: >>> 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. >> >> 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. 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. |
| |||
| Mumia W. escreveu: > On 05/10/2008 01:56 PM, Paulo da Silva wrote: >> sk8r-365 escreveu: >>> Feverishly pounding upon a keyboard Paulo da Silva typed: >>>> 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. >>> >>> 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. > > 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". > 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. |
| |||
| 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. |
| |||
| >> 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! |
| |||
| · Paulo da Silva <psdasilvaX@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. Martin. |
| ||||
| Martin Schnitkemper escreveu: > · Paulo da Silva <psdasilvaX@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 :-( |