OpenSolaris

You are not signed in. Sign in or register.

Package Management Task Tables

The OpenSolaris 2008.05 release uses the Image Packaging System (IPS) software to manage packages. This document examines common package-management tasks and contrasts the commands used by IPS with the commands used by the Solaris operating system and with the apt-get package management software.

Table 1 Packaging Tasks: IPS and apt-get

Task

IPS command

apt-get equivalent

Create an image

pkg image-create

dpkg --build

Install a new package

pkg install

apt-get install

Search for a package

pkg search

apt-cache search

Update all packages within an image

pkg image-update

apt-get dist-upgrade

Display information about a package's state

pkg list

dpkg --list

Verify correct installation of a package

pkg verify

debsums

Display information about a package

pkg info

apt-cache showpkg

Listing the contents of a package

pkg contents

dpkg --contents

Uninstall a package

pkg uninstall

apt-get remove

Update an existing authority or add a authority

pkg set-authority

Edit sources.list file

Remove the configuration that is associated with a authority

pkg unset-authority

Edit sources.list file

Display authority information

pkg authority

more sources.list

Table 2 Packaging Tasks: IPS and Solaris

Task

IPS command

Solaris equivalent

Install a new package

pkg install

pkgadd -a

Display package state and version information

pkg list

pkginfo

Verify correct installation of a package

pkg verify

pkgchk -v

Display information about a package

pkg info

pkginfo -l

Listing the contents of a package

pkg contents

pkgchk -l

Uninstall a package

pkg uninstall

pkgrm