| Command | Description | Example |
| rpm -qa | List all installed rpms | rpm -qa | grep kernel |
| rpm -qlm <rpm file> or rpm -qpl <rpm file> |
List the files contained in the .rpm file | |
| rpm -ivh <rpm file> | Check for dependency then install rpm | |
| rpm -Uvh <rpm file> | Check for dependency then update package | |
| rpm2cpio |
Extract files contained in the rpm (without install) into current directory |
Showing posts with label rpm. Show all posts
Showing posts with label rpm. Show all posts
Friday, August 24, 2012
Linux rpm commands
Following are the rpm commands I regularly use on RHEL and variants:
Sunday, July 24, 2011
Missing cron.d in sysstat rpm install
This note is for RHEL/OEL or other similar distributions.
When rpm install for sysstat package complains of missing /etc/cron.d, while cron.d suggest missing cron package, the actual missing package is vixie-cron.
rpm -Ivh sysstat*.rpm
- dependency fails due to missing /etc/cron.d
rpm -qa|grep cron
- following should be installed, otherwise install these first:
When rpm install for sysstat package complains of missing /etc/cron.d, while cron.d suggest missing cron package, the actual missing package is vixie-cron.
rpm -Ivh sysstat*.rpm
- dependency fails due to missing /etc/cron.d
rpm -qa|grep cron
- following should be installed, otherwise install these first:
- crontabs-...
- vixie-cron-...
- anacron-...
Subscribe to:
Posts (Atom)