RPM, APT, and Solaris Package thing Comparison
Useful Links:
List all installed packages
- rpm: rpm -qa
- apt: COLUMNS=132 dpkg -l
- sol: pkginfo
What package owns a given file?
- rpm: rpm -qlf /path/to/file
- apt: apt-file search /path/to/file
- sol: pkgchk -l -p /path/to/file
List files in installed pkg:
- rpm: rpm -ql pkg
- apt: apt-file list pkg
- sol: pkgchk -l pkg | awk '/^Pathname/ {print $2}'
List files in uninstalled pkgfile.pkg
- rpm: rpm -qlp file.rpm
- sol: pkgchk -l -d pkgfile.pkg | awk '/^Pathname/ {print $2}'
Show description about pkg
- rpm: rpm -qi pkg
- sol: pkginfo -l pkg
Check that a package file is OK before installing it:
- rpm: rpm -K pkgfile
- sol: pkgchk -d pkgfile
Install pkgfile
- rpm: rpm -ivh pkgfile
- sol: pkgadd -d pkgfile
Uninstall / Remove pkg
- rpm: rpm -e pkg
- sol: pkgrm pkg
Verify integrity of installed files from pkg
- rpm: rpm -V pkg
- sol: pkgchk pkg
Verify integrity of install files from all packages:
- rpm: rpm -Va
- sol: pkginfo | awk '{print $2}' | xargs pkgchk
Fix an altered package installation:
- rpm: rpm --setperms --setugids pkg
- sol: pkgchk -f pkg