Basic Package Man Flashcards
Where is the metadata for rpm packages located?
/var/lib/rpm
query all installed packages
rpm -qa
query whether a specific package is installed
rpm -q perl
list only the documentation of a a package
rpm -qd audit
list config files of a package
rpm -qc cups
identify which package owns the specified file
rpm -qf /etc/passwd
display info about an installed package
rpm -qi setup
list all file and package dependencies for a package
rpm -qR chrony
determine what packages require the specified package in order to operate properly
rpm -q –whatrequires lvm2
install zsh
sudo rpm -ivh /mnt/BaseOS/Packages/zsh-5.5.1-6.el8.x86_64.rpm
upgrade zsh
sudo rpm -Uvh /mnt/BaseOS/Packages/zsh-5.5.1-6.el8.x86_64.rpm
refresh package
sudo rpm -Fvh /mnt/BaseOS/Packages/zsh-5.5.1-6.el8.x86_64.rpm
overwrite zsh
sudo rpm -ivh –replacepkgs /mnt/BaseOS/Packages/zsh-5.5.1-6.el8.x86_64.rpm
remove zsh
sudo rpm zsh -ve
check integrity of zsh
rpm -K /mnt/BaseOS/Packages/zsh-5.5.1-6.el8.x86_64.rpm –nosignature