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

Re: show all Suggests packages not installed



On Mon, 12 May 2003 09:25:39 +1000 Brian May wrote:
> On Sun, May 11, 2003 at 05:38:20PM +0100, Carlos Sousa wrote:
> > On Sun, 11 May 2003 05:14:21 +0800 Dan Jacobson wrote:
> > >
> > > For all (1000+) packages that I have installed:
> > >     Show me all the Recommends and Suggests packages (that I don't
> > >     have installed) in one concise list.
> > 
> > apt-get install grep-dctrl
> > man grep-dctrl
> 
> I am not sure how this could be used to solve the problem.

grep-dctrl -n -sPackage -FStatus "ok installed" /var/lib/dpkg/status \
| sort | uniq > /tmp/x.$$ ; grep-dctrl -n -sSuggests,Recommends -FPackage \
'' /var/lib/dpkg/status | sed 's/ *| */ /g' | sed 's/ *, */ /g' | sed \
's/ *([^)]*) */ /g' | tr ' ' '\n' | grep -v "^$" | sort | uniq | grep -v \
-f /tmp/x.$$ ; rm -f /tmp/x.$$

The output will contain virtual packages, though. Perhaps grepping out
Provides: contents would solve that, at least partially?

Cheers,

-- 
Carlos Sousa
http://vbc.dyndns.org/



Reply to: