- Overview
of the Sun package system
- Getting information about packages
- Installing packages
- Removing packages
Overview
Sun has provided a relatively simple means of adding software to the Solaris operating system environment. Sun has standardized software delivery using a package system and a set of commands to add, check and remove the packages. Packages added to the system are recorded in a package database so that you can always check to see what software was installed via the package system. Not all software comes in packages, so the system will not know about all software installed (unless you only installed things using packages).
- pkginfo
- Lists packages installed
- pkgadd
- Installs a package from a specific device location.
- pkgrm
- Removes a package.
Retreiving Package Information
You use the pkginfo command to get information about one or more packages installed on the system. The pkgadd command will not get information about packages you have not installed.
- Check for existing or older versions of the package
% pkginfo -c <package name > - Find all packages that are fully installed
- Find packages that did not fully install
Adding Packages
You use the pkgadd command to add or install packages to a Solaris system. You must have root access to the system (via su or sudo) to add or remove packages.- Switch to root
% su - Check for existing or older versions of the package
% pkginfo -c <package> - Remove old older version (if installed)
% pkgrm <package> - Install the new package
% pkgadd -d /absolute/path/to/package SUNWpkg-name
Removing Packages
- Remove old older version (if installed)
% pkgrm <package>