How to work with RPM packages ?

Dealing with RPM packages.

RPM Query Commands

#rpm -qf <Filename> - Will show the name of pakage that owns the given file.
#rpm --verify <package name> - Will verify the installed package for any error.
#rpm --verify --all   - Will verify all installed packages for any error.



Additional more commands are given in the below snippet,



Installing, Updating & Uninstalling Packages :

#rpm --import RPM-GPG-KEY - Some packages needs RPM GPG Key installed before installing any particular package.
#rpm -ivh <*.rpm> - To Install Package
#rpm -Uvh <*.rpm> - To Update package
#rpm -e <package name> - To Uninstall




Comments

Popular posts from this blog

Recover or restore initramfs file in RHEL or CentOS 7

Space reclamation / UNMAP on RHEL or CentOS 7

How to recover /boot partition on RHEL or CentOS 7?