[csw-users] remove software en masse? and

Thomas Stewart tstewart at nibsc.ac.uk
Wed Sep 29 17:26:44 MEST 2004


On Wednesday 29 September 2004 16:16, Tom Carpenter wrote:
> Can one simply "rm -rf /opt/csw" to start over with CSW
> software?

No, because CSW uses the Solaris package management system, ie a datebase of 
what files are installed and where.

You need to get Solaris to remove the packages for you. Something like 
"pkginfo | grep CSW | awk '{print $2}' | xargs" will print all the csw 
packages that are installed. (pkginfo prints all the installed packages, the 
grep filters for the csw ones, the awk only prints the packages name, and the 
xargs get it all on one line.)

You can then do "pkgrm {package list}" to remove the packages. (you could just 
stick the pkgrm on the end of the xargs, but I think thats too scary, this 
way you can give the list a quick audit first.

HTH

Regards
-- 
Tom



More information about the users mailing list