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

Re: script to list installed packages



Michael D Schleif wrote:

  dpkg -l | grep ^i

hth

That's what I used to use, but you'd have to specify something like
 COLUMNS='150' dpkg -l |grep ^i

Otherwise, you'll have names like this returned:
ii xtightvncviewe 1.2.7-3 Virtual network computing client software fo

Notice how the "r" is cut off in the package name.

With COLUMNS=150

   # COLUMNS='150' dpkg -l |grep ^i |grep xtight
ii xtightvncviewer 1.2.7-3 Virtual network computing client software for X

Using dpkg --get-selections , you'll see the proper name of the package, like this: # dpkg --get-selections \* |egrep -w 'install|hold' |grep xtight |cut -f1
   xtightvncviewer


HTH

Ed



Reply to: