deploymentking
1/16/2019 - 7:24 AM

Yum RPM Useful Commands

RPM_FILE=/path/to/file.rpm

# View scripts
rpm -qp --scripts $RPM_FILE

# List files in rpm
rpm -qlp $RPM_FILE

# Extract files from RPM
rpm2cpio .$RPM_FILE | cpio -idmv ./file/to/extract