[KULUA] How to tell what's stock and what's added in *buntu?

jim at jimani.com jim at jimani.com
Thu Aug 5 03:10:11 CDT 2010


Hi,

On Wed, Aug 04, 2010 at 05:12:43PM -0500, Kendric Beachey wrote:

> > Divert that output to a file
> >
> > dpkg -l >> mydebs.txt
> >
> > After you install fresh, do the same
> >
> >
> > dpkg -l >> mynewdebs.txt
> >
> > I'd then use some program to get the items that are in mydebs.txt that are
> > not in mynewdebs.txt.

Use sort and diff:

  sort mydebs.txt > mydebs_ordered.txt
  sort mynewdebs.txt > mynewdebs_ordered.txt
  diff mydebs_ordered.txt mynewdebs_ordered.txt > non-stock_debs.txt

-- 
Jim


More information about the KCLUG mailing list