On Mon, May 15, 2006 at 10:45:48AM -0400, Greg Folkert wrote: >On Mon, 2006-05-15 at 14:37 +0100, Magnus Therning wrote: >> On Mon, May 15, 2006 at 02:09:16PM +0200, CJ van den Berg wrote: >> >On Mon, May 15, 2006 at 09:03:16AM +0100, Magnus Therning wrote: >> >> Can I somehow limit(l) the package list in aptitude to only show me >> >> packages that >> >> >> >> 1. are installed, and >> >> 2. aren't installed as a dependency of any other package, and >> >> 3. are dependencies of another installed package? >> >> >> >> AFAICS this would result in a list of packages that can be safely marked >> >> "automatically installed" without being removed from the system. >> > >> >AFAICT this is what you want: >> > >> ># aptitude search ~i\!~Rdepends:.\!~M >> > >> >/usr/share/doc/aptitude/html/en/ch02s03.html (in aptitude-doc-en) has the >> >full details. >> >> Not quite. :( >> >> Limiting the package list to that in aptitude and then pressing 'M' does >> result in the package being scheduled for deletion. With the proper filter >> it should remain installed and be marked as automatically installed. > >I suggest looking at the docs, I recently went this way to aptitude for >cleaning out cruft as well. > > file:///usr/share/doc/aptitude/html/en/ch02s04.html > >That particular place gives enormous amounts of possibilities.
I assume you mean file:///usr/share/doc/aptitude/html/en/ch02s03.html where the search patterns are described. I have looked at those, but I can't find any that would let me find non-top-level packages[1] that aren't marked auto. /M 1. A top-level package is a package that isn't a dependency (or a recommendation) of any other installed package. -- Magnus Therning (OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED] http://therning.org/magnus Software is not manufactured, it is something you write and publish. Keep Europe free from software patents, we do not want censorship by patent law on written works. Most people, I think, don't even know what a Rootkit is, so why should they care about it? -- Thomas Hesse, president of Sony-BMG's Global Digital Business, commenting on XCP
pgpclb4GBdSZN.pgp
Description: PGP signature