[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:18:09 CDT 2010


Hi,

On Thu, Aug 05, 2010 at 03:10:11AM -0500, jim at jimani.com 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

You can get the same results with less typing with:

  cat mydebs.txt mynewdebs.txt | sort | uniq -u > non-stock_debs.txt

-- 
Jim


More information about the KCLUG mailing list