RPM commands
RPM package is a powerful utility to manage the software in all major Linux distributions. RPMs can be used to,
Here are some useful command to manage RPM packages,
1. Getting detailed information about the package httpd
2. Determining which package installed the file /etc/httpd/conf.d/httpd-portal.conf,
3. Showing all the files installed my httpd
4. Viewing the documentation files for the command httpd,
5. Listing all files included in an rpm file,
6. Verify if the package is installed or not,
7. To check what has changed in the files on the system since the HTTPD rpm originally installed,
8. Checking package to ensure its integrity and origin: (NOTE: gpg or pgp software must be installed on your system before you use this command)
9. To install wget RPM package,
10. Upgrading the package wget: (NOTE: if the package is not installed it will install it for You, like option “-ivh”),
11. Upgrade the package wget (if it exists already),
12. Removing the RPM package wget,
13. To list the configuration file of a package,
14. To display the list of all recently installed packages,
15. To find out what dependencies httpd package has,
16. To find out what dependencies an rpm file has,
17. To display list of configuration files for a command,
- Install packages
- Remove packages
- Upgrade packages
- Verify packages
Here are some useful command to manage RPM packages,
1. Getting detailed information about the package httpd
Code:
rpm -qi httpd
Code:
rpm -qf /etc/httpd/conf.d/httpd-portal.conf
Code:
rpm -ql httpd
Code:
rpm -qd httpd
Code:
rpm -qpl /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -qa | grep httpd
Code:
rpm -V httpd
Code:
rpm -K /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -ivh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -Uvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -Fvh /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -e wget
Code:
rpm -qc httpd
Code:
rpm -qa –last
Code:
rpm -qR httpd
Code:
rpm -qpR /mnt/iso/suse/i586/wget-1.10.2-78.i586.rpm
Code:
rpm -qcf /usr/sbin/httpd
Total Comments 0