[csw-users] remove software en masse? and

Mark Round mark at markround.com
Wed Sep 29 17:37:02 CEST 2004


Tom Carpenter wrote:
 >Can one simply "rm -rf /opt/csw" to start over with CSW
 >software?

Not a good idea, as you'll still have all the packages registered in 
your package database, which will likely lead to all kinds of confusion. 
A cleaner way is to do something along the lines of  (Loosely taken from 
the example on the CSW Gnome bugtracker page):-

# pkginfo | grep CSW | awk '{print $2}' > /tmp/cswpkgs.txt
# while read pkg; do yes | pkgrm $pkg ; done < /tmp/cswpkgs.txt

Which will put a list of CSW packages into /tmp/cswpkgs.txt, and then 
remove them without asking for confirmation.

-Mark
mark at blastwave.org



More information about the users mailing list