document updated 8 years ago, on Oct 29, 2016
There are a variety of package systems.
Operating systems
Programming language, third-party libraries
Programming language, entire interpretter
equivalent commands
| apt-get | yum | cpan
|
---|
install a package
| apt-get install pkg
| yum install pkg
| cpan pkg
|
---|
list packages
| installed
| dpkg -l
| rpm -qa
| cpan -l
|
---|
all
| apt-cache pkgnames
| yum list
| gzip -dc ~/.cpan/sources/modules/02packages.details.txt.gz
|
---|
search available packages
| apt-cache search keyword
| yum search keyword
| cpan <<< d /keyword/
|
---|
show summary info for package
| any
| apt-cache show pkg
| yum info pkg
|
|
---|
installed
| dpkg -s pkg
|
| perldoc module
|
---|
list files in package
| installed
| dpkg -L pkg
| rpm -ql pkg
|
perl -MExtUtils::Installed -le'$,=$/;print ExtUtils::Installed->files(shift)' module
|
---|
any
| apt-file list pkg
| repoquery -q -l pkg
|
|
---|
list packages that own a file
| all
| apt-file search filename
| repoquery -q --file filename
|
|
---|
installed
| dpkg -S filename
| yum whatprovides filename
|
|
---|