Thursday, February 07, 2008

Handy RPM commands

# Unpackage an ISO file.
rpm2cpio <> | cpio -idmv

# Extracting the scripts from the rpm
rpm -qp --scripts <> >> /tmp/scripts

# Command to find if any of the files delivered by an RPM has changed.
rpm --verify











wdl

GNU working directory list is an open source utlity to easily move between the working directories. You can even set CDPATH to move effectively between the directores. But take care setting CDPATH can also cause make command to fail, if you have a top-level make file which cd into sub-dirs and does a make.