Uninstalling the xml-keyval Package

Depending upon how you installed the xml-keyval package, there are three ways to uninstall it.

The following shows how one would check to see if the Solaris package is installed, and the command to then uninstall the <keyval> package.

bash-2.03# pkgchk VAIxml-keyval
bash-2.03# pkgrm VAIxml-keyval
The following package is currently installed:
   VAIxml-keyval         Utilities for working with key/value definitions
                         (sparc,i386,ppc) 1.0.0,REV=20040315
 
Do you want to remove this package?y

... lots of output ...

## Updating system information.
 
Removal of <VAIxml-keyval> was successful.
bash-2.03# 

The following checks to see that the package is intalled on a RedHat system and then uninstalls the package:

[root@salsa root]# rpm --query vaisala-xml-keyval
vaisala-xml-common-1.0.0-5
[root@salsa root]# rpm --erase vaisala-xml-keyval
[root@salsa root]# rpm --query vaisala-xml-keyval
package vaisala-xml-common is not installed
[root@salsa root]# 

If you are a developer and have installed the package using make install, you can use make uninstall to remove the package as shown below:

[pkb@salsa keyval]$ make uninstall
***WARNING*** did not remove directory (shared?): /home/pkb/usr/man/manl
***WARNING*** did not remove directory (shared?): /home/pkb/usr/man
***WARNING*** did not remove directory (shared?): /home/pkb/usr/bin
***WARNING*** did not remove directory (shared?): /home/pkb/usr
***WARNING*** did not remove directory (shared?): /home/pkb/public_html/vaisala
***WARNING*** did not remove directory (shared?): /home/pkb/public_html
***WARNING*** did not remove directory (shared?): /home/pkb
***WARNING*** did not remove directory (shared?): /home
[pkb@salsa keyval]$ 

Please note, that the warnings are to be expected as make uninstall works its way up the directory chain. It will not attempt to remove any directories found to contain files.