Information Technology Reference
In-Depth Information
Removing a Package Using the pkgrm Command
The pkgrm command is used to remove installed packages. To remove one or
more packages, only the package names need to be specified as command-
line arguments. For example, to remove the SUNWast package, the follow-
ing command is used:
# pkgrm SUNWzipS
The following package is currently installed:
SUNWzipS Source for the Info-Zip (zip)
(sparc) 11.9.0,REV=2001.10.18.00.44
Do you want to remove this package? y
## Removing installed package instance <SUNWzipS>
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
.
.
.
/usr/share/src/zip/LICENSE
/usr/share/src/zip/INSTALL
/usr/share/src/zip/CHANGES
/usr/share/src/zip/BUGS
/usr/share/src/zip
/usr/share/src <shared pathname not removed>
/usr/share <shared pathname not removed>
/usr <shared pathname not removed>
## Updating system information.
Removal of <SUNWzipS> was successful.
#
The Software Installation Database
The Software Installation Database is an ASCII file used by the package-
administration tools to record the files and directories associated with pack-
ages. When the pkgadd command installs package components, it adds an
entry in the Software Installation Database for each file and directory.
Likewise, when the pkgrm command removes package components, the
entries in the Software Installation Database entries associated with the
package components are removed. The pkgchk command uses this informa-
tion to verify package integrity.
The Software Installation Database is stored in the /var/sadm/install/
contents file. File and directory entries consist of the following fields:
Name
Type (d for directory, f for file, and so on)
Installation class
Search WWH ::




Custom Search