dpkg --get-selections

If none of the more specific forums is the right place to ask

Re: dpkg --get-selections

Postby gnudude » 2009-05-07 14:03

So we can safely conclude...

so 'purge' will result in the package no longer being listed at all

and 'remove' will usually result in deinstall listing but may result in the package no longer being listed at all
gnudude
 
Posts: 1712
Joined: 2009-04-05 17:30
Location: gone....

Re: dpkg --get-selections

Postby TAS » 2009-05-08 14:01

If there is no configuration, cache files or whatever to be removed, then the package will be completely removed and not left in 'c' (deinstall) state.

E.g. server01-dom0:~# dpkg -L telnet
/.
/usr
/usr/bin
/usr/bin/telnet.netkit
/usr/share
/usr/share/doc
/usr/share/doc/telnet
/usr/share/doc/telnet/README.telnet
/usr/share/doc/telnet/README.gz
/usr/share/doc/telnet/BUGS
/usr/share/doc/telnet/copyright
/usr/share/doc/telnet/changelog.gz
/usr/share/doc/telnet/README.telnet.old.gz
/usr/share/doc/telnet/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/telnet.netkit.1.gz
/usr/share/menu
/usr/share/menu/telnet

This should always be completely removed. Dependencies that were installed automatically are never purged by default (if not uninstalled manually, using the purge command).
TAS
 
Posts: 20
Joined: 2009-04-29 06:57

Re: dpkg --get-selections

Postby hasi » 2009-07-17 12:22

I had the same problem. The following commands fixed it for me:
Code: Select all
aptitude purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//)
hasi
 
Posts: 1
Joined: 2009-07-17 12:19

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable