Sometimes we are required to extract files inside an RPM file without installing it. For example is when we take binaries from one distribution and use it on another distribution, where RPM is not the default package manager.
The rpm2cpio command comes in handy. Check out the given example below ...
$ rpm2cpio coreutils-6.9-2.fc7.i586.rpm | cpio -idv
./bin/basename
./bin/cat
./bin/chgrp
....
...
[.. etc ]
Now you can use the extracted files
The rpm2cpio command comes in handy. Check out the given example below ...
$ rpm2cpio coreutils-6.9-2.fc7.i586.rpm | cpio -idv
./bin/basename
./bin/cat
./bin/chgrp
....
...
[.. etc ]
Now you can use the extracted files
Comments