Let's say we've installed a bunch of Solaris packages from Blastwave or another source and want to remove them all without going through the boring process of answering all those questions:
$ pkginfo | grep CSW
system CSWcommon common - common files and dirs for CSW packages
application CSWexpat expat - XML Parser Toolkit
system CSWggettext ggettext - GNU gettext
application CSWglib2 glib2 - the low-level core library for GTK+ and GNOME
system CSWiconv libiconv - GNU iconv library
application CSWmc mc - GNU Midnight Commander
system CSWpkgget pkg_get - CSW version of automated package download tool
system CSWslang slang - library primarily to provide an alternative to libcurses
system CSWsunmath libsunmath - Sun maths library
Well, nothing simpler:
# yes | pkgrm $(pkginfo | grep CSW | awk '{ print $2 }' | xargs)
The following package is currently installed:
CSWcommon common - common files and dirs for CSW packages
(i386) 1.4.5
Do you want to remove this package? [y,n,?,q]
## Removing installed package instance
## Verifying packagedependencies in global zone
[.....]
Removal ofwas successful.
# pkginfo | grep CSW
#
Since Blastwave installs by default in /opt/csw, you can probably remove that too if you don't have settings you plan on keeping:
# rm -rf /opt/cswEnjoy :-).
1 comments:
Thx for having that post on uninstalling Blastwave packages completely. I wanted to try VLC and Scribus, but none of these two programs where mature enough for OpenSolaris.
Post a Comment