Linux Package Manager Cheat Sheet

"pkg-file" refers to the package as bundled into a single installable file
"pkg" refers to the package name
"file" refers to a file on the filesystem
Taskdpkgrpmaptyum
show description about "pkg"dpkg -s "pkg"rpm -qi "pkg"apt-cache show "pkg"yum info "pkg"
install "pkg-file"dpkg -i "pkg"rpm -ivh "pkg"apt-get install "pkg"yum install "pkg"
remove "pkg"dpkg -r "pkg"rpm -e "pkg"apt-get remove "pkg"yum remove "pkg"
find package wich owns "file"dpkg -S "file"rpm -qf "file"N/Ayum provides "file"
list files in installed "pkg"dpkg -L "pkg"rpm -ql pkg"N/AN/A
list files in "pkg-file"dpkg-deb -c "pkg-file"rpm -qlp "pkg-file"N/AN/A
list all installed packagesdpkg -lrpm -qaapt-cache pkgnamesyum list installed
verify integrity of installed files from "pkg"N/Arpm -V "pkg"N/AN/A
verify integrity of installed files from all packagesN/Arpm -VaN/AN/A
verify integrity of "pkg-file"N/Arpm -K "pkg-file"N/AN/A

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *