OpenSolaris 2009.06 Image Packaging System Guide
Previous Next

Package Management Comparison

The following tables compares the common package management tasks used by IPS with the commands used by the Solaris operating system and with the apt-get package management software.

Table 11-1 IPS Commands and apt-get

Task

IPS Command

apt-get Equivalent

Create an image

pkg image-create

dpkg-build

Install a package

pkg install

apt-get install

Search for a package

pkg search

apt-cache search

dpkg -S

Update all packages

pkg image-update

apt-get dist-upgrade

Display state and version information

pkg list

dpkg –list

Display contents of a package

pkg contents

dpkg –contents

Display package information such as license

pkg info

apt-cache showpkg

Verify a package installation

pkg verify

debsums

Uninstall a package

pkg uninstall

apt-get remove

Display publisher information

pkg publisher

more sources.list

Add or update a publisher

pkg set-publisher

Edit sources.list file

Remove a publisher

pkg unset-publisher

Edit sources.list file

Table 11-2 IPS Commands and Solaris

Task

IPS Command

Solaris Equivalent

Install package

pkg install

pkgadd -a

Display package state and version information

pkg list

pkginfo

Verify package installation

pkg verify

pkgchk -v

Display package information such as license

pkg info

pkginfo -l

Display contents of a package

pkg contents

pkgchk -l

Search for a package

pkg search

pkgchk -l -p

Uninstall a package

pkg uninstall

pkgrm

Previous Next