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

Re: What's the right way to rm packages?



On Sat, Nov 05, 2005 at 07:40:18PM -0500, Bill Marcum wrote:
> On Sat, Nov 05, 2005 at 10:21:43PM +0000, s. keeling wrote:
> > I blew away CUPS last night, not noticing it was taking Gnome with
> > it.  In the past, I've mixed "aptitude remove" with "dpkg -r", then
> > cleaning up after the result.
> > 
> > What's the right way with aptitude?  How do I not blow away
> > $SOMEWANTEDPACKAGE correctly?
> > 
> > I'm running sarge.
> > 
> I always use aptitude in the interactive mode; you press "g" and it 
> shows a list of packages to be installed or removed, and you can change 
> the list.

I do that but supplement it with some helper scripts.
For instance, here's one that will dump the installed packages and
versions on your system.  You can run diff it and see what you've
blown away:

grep-status installed | \
grep-dctrl -sPackage,Version . | grep '.' | sed -e \
"s/Package: /*/" -e "s/Version: /|/" | tr '\n' '|' | sed -e "s/*//g" \
 -e "s/||/ /g" | tr '|' '\n' | sort




Reply to: