[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system rebuild preparation



On Fri, Oct 20, 2006 at 03:26:36 -0500, Mumia W.. wrote:
> On 10/20/2006 01:30 AM, Mumia W.. wrote:
> >
> >$ aptitude search '~i!~M'
> >
> 
> I forgot you wanted the version information removed, and you wanted only 
> top-level packages. That's a bit more of a challenge.

What about

aptitude -F "%p" search '~i!~Rdepends:.*'
aptitude -F "%p" search '~i!(~Rdepends:.*|~Rrecommends:.*)'
aptitude -F "%p" search '~i!(~Rdepends:.*|~Rrecommends:.*|~Rsuggests:.*)'

I glanced through the resulting lists of packages and they seemed
reasonable to me. I spotted a few false positives; these were obsolete
libraries which had been installed before I switched to aptitude, so
they were not automatically removed when they were no longer needed. 
It might make sense to add '!~slibs' to the aptitude search pattern to
avoid these cases.

-- 
Regards,
          Florian



Reply to: