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

Re: Listing only the package names with dpkg?



On Tue, Oct 03, 2000 at 02:53:00PM +0200, Preben Randhol wrote:
> Colin Watson <cjw44@flatline.org.uk> wrote on 03/10/2000 (14:49) :
> > Preben Randhol <randhol@pvv.org> wrote:
> > >I'm trying to list out all the packages I have installed on my system.
> > >I can do a dpkg -l, but I only want the package names not the rest, as
> > >I'm going to use the package names.
> > 
> >   dpkg --get-selections | cut -f1
> 
> Ah thanks that was what I was looking for.
> 
> dpkg --get-selections | grep "install" | cut -f1

careful -- that'll also show "deinstall" items:
	% dpkg --get-selections | grep "deinstall"
apache						deinstall

-- 
things are more like they used to be than they are now.

will@serensoft.com *** http://www.dontUthink.com/



Reply to: