Fandom

Scratchpad

Common Package Commands Table

216,094pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Also on Fandom

Random wikia