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

Re: Is there an apt-get install log?



> > >> COLUMNS=120 dpkg -l | grep "^i" | cut -b 5- > pkgs_woody.current
> > Bob, could you cite an example of the name being cut off?  Worst case

To be honest I was blind to the COLUMNS=120 and did not read that.
But as others said even long values can truncate long names.

> > I've found is that a few letters of the description are lost. The
> > package name and version have always been complete.  (So far as I've
> > noticed.)
> 
> It's time to stop using dpkg -l if you want to get full package names or get
> data to process further. 
> 
> dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' | grep installed

dpkg-query?  I searched but could find no reference to that.  But this
looks like what I was poking toward.

Bob

Attachment: pgpqxWP8VYB6m.pgp
Description: PGP signature


Reply to: