I've RPM file of which I want to examine its file contents. For .deb
packages, I can use dpkg -x file.deb
to extract it.
What is the equivalent command for a .rpm
file? I'm looking for a command-line application.
I've RPM file of which I want to examine its file contents. For .deb
packages, I can use dpkg -x file.deb
to extract it.
What is the equivalent command for a .rpm
file? I'm looking for a command-line application.
file-roller
seems to open rpm files. Alternatively you can use the command:that will extract the rpm content to the current directory.
Install 7z:
and extract:
As far as I remember you have to use a app called alien which transforms .rpm to deb files. Use a terminal to do :
then
If you then need to examine it you can resort to your dpkg -x file.deb method
You can also use alien to only extract the files (which it calls "generate a build tree")
alien --scripts --generate <package.rpm>
You will get 2 dirs -
<package>
, and<package>.orig
, which is the raw extraction from the rpm.