Pages

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:

CommandDescriptionExample
rpm -qaList all installed rpmsrpm -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 <rpm file> | cpio -idmv <leave empty for all or specify specific files in the rpm> Extract files contained in the rpm (without install) into current directory

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:
  • crontabs-...
  • vixie-cron-...
  • anacron-...