BIP KB:
How To Extract The Contents Of An RPM File
Article By tasia
![]() |
Sometimes it can be useful to extract the contents of an RPM file without actually installing it. In order to do so, use the following command: |
rpm2cpio file.rpm | cpio -idmv
Please Note: This will extract the rpm into whatever directory you are in, including all of it's sub-directories. So for example, if you change directory into / and run the command above the rpm will be extracted and files/directories placed just as if you had installed the rpm. Normally first you would want to create and change into a working directory.
Tags: centos, how-to, Contents, Extract, rpm
Spin Up A VPS Server In No Time Flat
Simple Setup
Full Root Access
Straightforward Pricing
DEPLOY A SECURE VPS SERVER TODAY!Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |