How to Extract RPM Packages

RPM is a sort of cpio archive., Open a terminal (or Console as it is usually called in KDE). , Download the rpm file which you want to install and place it in a place of your choice.mkdir testing cd testing wget...

7 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: RPM is a sort of cpio archive.

    So rpm2cpio converts the specified .rpm file to a cpio archive.

    Unpack the content of rpm is possible using standard archiving tools, regardless of your distribution’s package format.

    Even though rpm utility is capable of doing so , here is a more generic option on how to do it.
  2. Step 2: Open a terminal (or Console as it is usually called in KDE).

    ,,, i:
    Restore archive d:
    Create leading directories where needed m:
    Retain previous file modification times when creating files v:
    Verbose i.e. display progress , To check whether you have been successful in extracting it properly type in.ls If you get some file names when you run the command, rpm has been extracted successfully into that directory.
  3. Step 3: Download the rpm file which you want to install and place it in a place of your choice.mkdir testing cd testing wget ftp://download.fedora.redhat.com/pub/fedora/linux/updates/11/SRPMS/mediawiki-1.15.1-50.fc11.src.rpm

  4. Step 4: Now using the two command line utilities

  5. Step 5: rpm2cpio and cpio you could try to extract all the files.rpm2cpio mediawiki-1.15.1-50.fc11.src.rpm | cpio -idmv

  6. Step 6: You could also try installing with following arguments.

  7. Step 7: The package most probably has been extracted to that directory.

Detailed Guide

So rpm2cpio converts the specified .rpm file to a cpio archive.

Unpack the content of rpm is possible using standard archiving tools, regardless of your distribution’s package format.

Even though rpm utility is capable of doing so , here is a more generic option on how to do it.

,,, i:
Restore archive d:
Create leading directories where needed m:
Retain previous file modification times when creating files v:
Verbose i.e. display progress , To check whether you have been successful in extracting it properly type in.ls If you get some file names when you run the command, rpm has been extracted successfully into that directory.

About the Author

R

Raymond Richardson

Enthusiastic about teaching lifestyle techniques through clear, step-by-step guides.

67 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: