"pkg" refers to the package name
"file" refers to a file on the filesystem
Task | dpkg | rpm | apt | yum |
---|---|---|---|---|
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/A | yum provides "file" |
list files in installed "pkg" | dpkg -L "pkg" | rpm -ql pkg" | N/A | N/A |
list files in "pkg-file" | dpkg-deb -c "pkg-file" | rpm -qlp "pkg-file" | N/A | N/A |
list all installed packages | dpkg -l | rpm -qa | apt-cache pkgnames | yum list installed |
verify integrity of installed files from "pkg" | N/A | rpm -V "pkg" | N/A | N/A |
verify integrity of installed files from all packages | N/A | rpm -Va | N/A | N/A |
verify integrity of "pkg-file" | N/A | rpm -K "pkg-file" | N/A | N/A |
Reference: