Search:  
Gentoo Wiki

RPM

RPM Package Manager

also called:"Red Hat Package Manager"

The Redhat Package Manager is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. Each software package consists of an archive of files along with information about the package like its version, a description, etc. It also includes the RPM C library and header files. These development files will simplify the process of writing programs which manipulate RPM packages and databases and are intended to make it easier to create graphical package managers or any other tools that need an intimate knowledge of RPM packages in order to function.

Contents

Why would anyone want to use the Redhat Package Manager within Gentoo?

In order to extract sources from an rpm archive, it may be necessary to use the Redhat Package Manager tool.

A developer may want to extract package source code that is only available within an rpm archive.

Extracting files from an rpm archive

The rpm tool does not directly provide the facility to extract the contents of an rpm archive to the current directory.

Using rpm2cpio

There is an an indirect method of extracting files from an rpm archive by using the ["rpm2cpio"] utility together with the ["cpio"] tool:

rpm2cpio foobar.rpm | cpio -idmv

Using rpm2tar

The rpm2targz package provides two tools, rpm2tar or rpm2targz, both which is quite straigthforward to use.

To install rpm2targz: emerge app-arch/rpm2targz

 rpm2tar foobar.rpm

The above command will create foobar.tar

See also

Retrieved from "http://www.gentoo-wiki.info/RPM"

Last modified: Wed, 09 Jul 2008 04:51:00 +0000 Hits: 9,220