- Query all installed rpm's and grep for specific VERITAS rpm's installed.
rpm -qa | grep VRTS
- Display package information,including name, version, and description.
rpm -q-i VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
- Test installation of rpm for possible conflicts but don't actually install.
rpm-ivh --test VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
- Install rpm with regular verbosity and install progress.
rpm -ivh VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
- Additional verbosity to troubleshoot install failures
rpm -ivvvh VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
- Install package, but do not verify dependencies.
rpm -ivh --nodeps VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
- Refresh installed rpm
rpm -Fvh VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm
-Verify if rpm is corrupt.
rpm -V VRTSvxvm-common
- Upgrade rpm package. Add additional -vv switch for more verbosity
rpm -Uvh VRTSvxvm-common-5.0.30.20-MP3RP2_RHEL4.i686.rpm
- Remove rpm package. Add additional -vv switch for more verbosity
rpm -ev VRTSvxvm-common
- Remove rpm but do not verify dependencies
rpm -ev --nodeps VRTSvxvm-common
-Remove duplicate RPMS but verify dependencies or scripts.
rpm -ev --allmatches --nodeps--noscripts VRTSvxvm-common
- Display the values rpm will use for all of the options currently set in rpmrc and macros config files.
rpm -showrc VRTSvxvm-common
- Show scripts during install of the rpm
rpm -q --scripts VRTSvxvm-common
- Display which rpm installed the binary.
rpm -q --whatprovides/sbin/vxdisk
- Display dependencies required by the rpm.
rpm -q --requires VRTSvxvm-common
- Display files/binaries/modules installed by rpm
rpm -q--list VRTSvxvm-common
- Display file information by path size mtimemd5sum mode owner group isconfig isdoc rdevsymlink
rpm-q --dumpVRTSvxvm-common
-Lists archictecure either x86_64, 64 or i686 for specific rpm.
# rpm-q --qf '%{NAME.EN_US}-%{VERSION.EN_US}-%{RELEASE.EN_US} (%{ARCH.EN_US})\n'VRTSvxvm-platform
- Lists archictecure (x86_64, 64 or i686) for all rpms
# rpm -qa --qf "%{NAME.EN_US}-%{VERSION.EN_US}-%{RELEASE.EN_US} %{ARCH.EN_US}\n"
-Extract contents of rpm to a specifc directory without installing the rpm
rpm2cpio VRTSvxvm-common-5.0.30.00-MP3_RHEL4.i686.rpm | cpio-ivd
- For a complete list of rpm options and definitions :
man rpm