Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to extract RPM package without installing it

Answer:

Assume you have foo.rpm, type the following command to extract the rpm's contents

rpm2cpio foo.rpm | cpio -idmv

  1. How to install a RPM package
  2. How to upgrade an installed RPM package
  3. How to remove installed package using RPM?
  4. How to check if a rpm package is already installed?
  5. How to extract a particular file from a tar file?

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>