[csw-users] Remove all Sun provided Gnome packages

Bruno Saverio Delbono bruno.s.delbono at mail.AC
Tue Apr 27 05:06:49 CEST 2004


Bruno Saverio Delbono wrote:
> Mike Arnold wrote:
> 
>> http://docs.sun.com/db/doc/806-6875/6jfpo1h6q?q=gnome+uninstall&a=view
>>
>> /usr/sbin/remove-gnome
> 
> 
> No such command on  Solaris 9 8/03  and above. Here's my dirty hack to 
> check to remove all sun gnome packages
> 
> # pkginfo | grep GNOME | cut -d' ' -f7
> 
> On a working system, this comes up to be:
> 
> # pkginfo | grep GNOME| cut -d' ' -f7|wc -l
>      142

And a link from:

http://www.sundot.com/cgi-bin/blosxom.cgi/unix/solaris#pkgrmho

Having to answer lots of yes/no questions on package dependencies is a 
pain when doing Solaris package administration; so here is a quick 
how-to on how to avoid the questions. First create /tmp/noask with the 
following contents (edited copy of /var/sadm/install/admin/default):

mail=
instance=unique
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=nocheck
setuid=nocheck
conflict=nocheck
action=nocheck
basedir=default

Then execute something like this to remove the old Gnome packages before 
installing the new Sun supported 2.0 version (remove-gnome from the 2.0 
beta script failed for me):

for p in `pkginfo | grep -i gnome | sort | awk '{print $2}'`
do
   pkgrm -n -a /tmp/noask $p
done




More information about the users mailing list