LinuxCommandLibrary

pkginfo

Display information about installed packages

TLDR

List installed packages and their versions

$ pkginfo [[-i|--installed]]
copy

List files owned by a package
$ pkginfo [[-l|--list]] [package]
copy

List the owner(s) of files matching a pattern
$ pkginfo [[-o|--owner]] [pattern]
copy

Print the footprint of a file
$ pkginfo -f [path/to/file]
copy

SYNOPSIS

pkginfo [-q] [-x] [-l] [-a arch] [-v version] [-n pkginst[,pkginst...]] [pkginst...]

PARAMETERS

-q
    Quiet mode. Returns 0 if the package is installed, otherwise returns a non-zero value. Suppresses all other output.

-x
    Extract package information only.

-l
    Long format. Displays verbose information about the package.

-a arch
    Specify package architecture.

-v version
    Specify package version.

-n pkginst[,pkginst...]
    Display information only for the specified package instance(s). Multiple package instances can be specified using a comma-separated list.

pkginst...
    Display information for the specified package instances. If no instances are specified, information for all installed packages is displayed.

DESCRIPTION

pkginfo is a command-line utility used on Solaris-based systems to display information about software packages installed on the system. It retrieves details such as the package name, architecture, version, vendor, description, and dependencies. It can be used to display information for all installed packages or specific ones identified by their package abbreviation.

The command is particularly helpful for system administrators managing software installations, troubleshooting package dependencies, or simply obtaining a quick overview of the software landscape of a Solaris system. pkginfo gathers its information from package installation databases maintained by the Solaris package management system.

CAVEATS

pkginfo is a Solaris-specific command and is not available on other Unix-like systems like Linux or macOS. The package management systems and commands on those systems (e.g., apt, yum, pacman) provide similar functionality but with different syntax.

EXIT STATUS

0: Successful completion.
>0: An error occurred.

HISTORY

pkginfo is a part of the Solaris operating system's package management utilities. It evolved along with the System V Release 4 (SVR4) package management system. Its primary function has always been to provide a simple and straightforward way to query and display information about installed software packages. Throughout the various Solaris releases, the core functionality has remained mostly consistent, with minor improvements and updates to support newer package formats and features.

SEE ALSO

pkgadd(1), pkgrm(1), pkgchk(1)

Copied to clipboard