* Rajesh Fowkar ([EMAIL PROTECTED]) [010921 07:23]: > Hi, > > Is there any way to remove all the packages at a stretch using apt or dpkg > ? > > When we do apt-get remove the configuration files are retained. Now say I > want to remove all these packges permenantly along with the configuration > files, How to do that ? At present I am doing dpkg --purge <all the > packages>. Is there any better way ?
are you looking for something like this?
dpkg --get-selections | awk '/deinstall/ { print $1 "\tpurge"}' | dpkg
--set-selections
That should (untested) change the state of all packages marked 'deinstall'
to 'purge'. According to the description of pacakge selection states in
dpkg(8), that should do what you want.
--
Vineet http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'
pgpEvGR4gUJIp.pgp
Description: PGP signature

