Wikia

Scratchpad

Common Package Commands Table

Discuss this page0
167,963pages on
this wiki
Description Solaris FreeBSD Linux (deb) Linux (rpm)
Display the contents of a physical package file. # pkginfo -l -d /example_path/PKGfilename.pkg # pkg_info -L /example_path/PKGfilename.tbz # dpkg ? # rpm -qlp /example_path/example_filename.rpm
Display information about a physical package file. # pkginfo -l /example_path/example_PKGfilename.pkg # pkg_info -l /example_path/example_PKGfilename.tbz # dpkg ? # rpm -qip /example_path/example_filename.rpm
Display the names of all installed packages. # pkginfo # pkg_info # dpkg --list # rpm -qa
Searching the names of installed packages (wildcard example). # pkginfo ¦ grep -i 'example query string' # pkg_info '*example query string*' # dpkg --list '*example query string*' # rpm -qa '*example query string*'
Display information about an installed package. # pkginfo -l PKGname # pkg_info -I PKGname # dpkg # rpm -qi PKGname
Display the list of filenames for an installed package. # pkgchk -l PKGname ¦ grep Pathname: OR grep PKGname /var/sadm/install/contents # pkg_info -L PKGname # dpkg --listfiles PKGname # rpm -ql PKGname
Display the name of the package associated with a physical file. # pkgchk -l -p /example_path/example_filename OR grep '/example_path/example_filename' /var/sadm/install/contents # pkg_info -W /example_path/example_filename # dpkg -S /example_path/example_filename # rpm -qf /example_path/example_filename
Create a new package from an already installed package. # pkg_create -b PKGname # rpmrebuild -d /backup/path --batch package_name

Around Wikia’s network

Random wikia