RPM stands for Red Hat package manager and is one of the components used in Linux . It is being used widely in many Linux distributions such as Fedora , Mandriva and so on . Well it is quite easy to install an rpm but for extracting it you need to have access to a terminal or console .With the following hack you will be able to extract an RPM file.

Steps

  1. 1
  2. 2
    Open a terminal (or Console as it is usually called in KDE).
    Advertisement
  3. 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. 4
    Now using the two command line utilities, rpm2cpio and cpio you could try to extract all the files.
    rpm2cpio mediawiki-1.15.1-50.fc11.src.rpm | cpio -idmv
  5. 5
    You could also try installing with following arguments.
    • i: Restore archive
    • d: Create leading directories where needed
    • m: Retain previous file modification times when creating files
    • v: Verbose i.e. display progress
  6. 6
    The package most probably has been extracted to that directory. 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.
  7. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 11 people, some anonymous, worked to edit and improve it over time. This article has been viewed 102,759 times.
How helpful is this?
Co-authors: 11
Updated: June 6, 2017
Views: 102,759
Categories: Linux
Advertisement