RPM Package Manager

RPM Package Manager
RPM Package Manager (RPM)
Original author(s) Red Hat
Developer(s) Community[1]
Stable release 4.9.0 / March 2, 2011; 8 months ago (2011-03-02)
Operating system GNU/Linux, Unix-like
Type Package management
License GNU General Public License
Website http://rpm.org/ http://rpm5.org/

RPM Package Manager (RPM) is a package management system.[2] The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for GNU/Linux distributions; the file format is the baseline package format of the Linux Standard Base.

Originally developed by Ethan "E$" Cohen at Red Hat for Red Hat Linux, RPM is now used by many GNU/Linux distributions. It has also been ported to some other operating systems, such as Novell NetWare (as of version 6.5 SP3) and IBM's AIX as of version 4.

Whereas an RPM typically contains the compiled version of the software, an SRPM contains either the source code corresponding to that RPM or the scripts of a non-compiled software package.

Originally standing for Red Hat Package Manager, RPM now stands for "RPM Package Manager", a recursive acronym.

Contents

Features

For a system administrator performing software installation and maintenance, the use of package management rather than manual building has advantages such as simplicity, consistency and the ability for these processes to be automated and non-interactive.

A typical RPM repository (the place where the packages are made available publicly) contains thousands of free applications.

Features of RPM include:

  • RPM packages can be cryptographically verified with GPG and MD5
  • Original source archive(s) (e.g. .tar.gz, .tar.bz2) are included in SRPMs, making verification easier
  • PatchRPMs and DeltaRPMs, the RPM equivalent of a patch file, can incrementally update RPM-installed software
  • Automatic build-time dependency evaluation.

Local operations

Packages may come from within a particular distribution (for example Red Hat Linux) or be built for it by other parties (for example RPM Fusion for Fedora).[3] Circular dependencies among mutually dependent RPMs (so-called "dependency hell") can be problematic;[4] in such cases a single installation command needs to specify all the relevant packages.

Front ends

There are several front ends to RPM that ease the process of obtaining and installing RPMs and in resolving their dependencies. These include:

Local RPM installation database

Working behind the scenes of the package manager is the RPM database, stored in /var/lib/rpm. It uses Berkeley DB as its back-end. It consists of a single database (Packages) containing all of the meta information of the installed rpms. Multiple databases are created for indexing purposes, replicating data to speed up queries. The database is used to keep track of all files that are changed and created when a user (using RPM) installs a package, thus enabling the user (via RPM) to reverse the changes and remove the package later. If the database gets corrupted (which is possible if the RPM client is killed), the index databases can be recreated with the rpm --rebuilddb command.[7]

Description

Whilst the RPM format is the same across different Linux distributions, the detailed conventions and guidelines may vary across them.

Package filename and label

An RPM is delivered in a single file, normally in the format:

<name>-<version>-<release>.<architecture>.rpm

such as:

libgnomeuimm-2.0-2.0.0-3.i386.rpm

Source code may also be distributed in RPM packages; the architecture part is specified as <src>:

libgnomeuimm-2.0-2.0.0-3.src.rpm

RPMs with the noarch.rpm extension refer to packages which do not depend on a certain computer's architecture. These include graphics and text for another program to use, and programs written in interpreted programming languages such as Python programs and shell scripts.

The RPM contents also include a package label, which contains the following pieces of information:

  • the software name
  • the software version (the version taken from original "upstream" source of the software)
  • the package release (the number of times the package has been rebuilt using the same version of the software). This field is also often used for indicating the specific distribution the package is intended for by appending strings like "mdv" (formerly, "mdk") (Mandriva Linux), "mga" (Mageia), "fc4" (Fedora Core 4), "rhl9" (Red Hat Linux 9), "suse100" (SUSE Linux 10.0) etc.
  • the architecture the package was built for (i386, i686, athlon, ppc, etc.)

The package label does not necessarily need to match the name of the file.

Library packaging

Libraries are distributed in two separate packages for each version. One contains the precompiled code for use at run-time, while the second one contains the related development files such as headers, etc. Those packages have "-devel" appended to their name field. The system administrator should ensure that the versions of the binary and development packages match.

Format

The format is binary and consists of four sections:[2]

  • The lead identifies the file as an RPM file and contains some obsolete headers.
  • The signature which can be used to ensure integrity and/or authenticity
  • The header contains metadata including package name, version, architecture, file list, etc..
  • A file archive, which usually is in cpio format, compressed with gzip. The rpm2cpio tool enables retrieval of the cpio file without needing to install the RPM package.[8]
    • More recent versions of RPM can also use bzip2, lzma or xz compression.
    • RPM 5.0 format supports using xar for archiving.

SPEC file

The "Recipe" for creating an RPM package is a spec file. Spec files end in the ".spec" suffix and contain the package name, version, RPM revision number, steps to build, install, and clean a package, and a changelog. Multiple packages can be built from a single RPM spec file, if desired. RPM packages are created from RPM spec files using the rpmbuild tool.

Spec files are usually distributed within SRPM files, which contain the spec file packaged along with the source code.

SRPM

A typical RPM is pre-compiled software ready for direct installation. The corresponding source code can also be distributed. This is done in an SRPM, which also includes the "SPEC" file describing the software and how it is built. The SRPM also allows the user to compile, and perhaps modify, the code itself.

A software package may contain only scripts that are architecture-independent. In such a case only an SRPM may be available; this is still an installable RPM.

Forks

As of June 2010, there are two versions of RPM in development – one led by the Fedora Project and Red Hat, and the other by a separate group led by a previous maintainer of RPM, a former employee of Red Hat.

RPM.org

The rpm.org community's first major code revision was in July 2007; version 4.8 was released in January 2010, and 4.9 in March 2011.

This version is used by distributions such as Fedora, Red Hat Enterprise Linux, SUSE's openSUSE and SUSE Linux Enterprise, CentOS and formerly Mandriva (only for 2009.0 - 2010.2).

RPM v5

The RPM maintainer since 1999, Jeff Johnson, continued development efforts together with participants from several other distributions. RPM version 5 was released in May 2007.

This version is used by distributions such as Unity Linux, Wind River Linux and cAos Linux, and also by the OpenPKG project which provides packages for other common UNIX-platforms. Mandriva has currently switched to it for their development branch, with 2011.0 becoming its first release using it [9]. ArkLinux also announced intention to move to RPM5 for its next release.

See also

  • Autopackage - a "complementary" package management system
  • Delta ISO - an ISO image which contains RPM Package Manager files
  • dpkg - package management system used by Debian and its derivatives
  • List of Linux distributions
  • Portage - package management system used by Gentoo
  • Ports and Packages - FreeBSD's package management system
  • pkg-config - queries libraries to compile software from its source code
  • pkgsrc - package management system focusing on NetBSD, but available for Solaris, Linux, Darwin (Mac OS X), FreeBSD, OpenBSD, IRIX, BSD/OS, AIX, Interix (Microsoft Windows Services for Unix), DragonFlyBSD, OSF/1, HP-UX, QNX, and Haiku

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • RPM Package Manager — Saltar a navegación, búsqueda RPM Package Manager Desarrollador Red Hat …   Wikipedia Español

  • RPM Package Manager — (o RPM, originalmente llamado Red Hat Package Manager) es un sistema de administración de paquetes pensado básicamente para Linux. Es capaz de instalar, actualizar, desinstalar, verificar y solicitar programas. RPM es el formato de paquete de… …   Enciclopedia Universal

  • RPM Package Manager — Pour les articles homonymes, voir RPM. RPM Package Manager …   Wikipédia en Français

  • RPM Package Manager — Dieser Artikel wurde im Portal Freie Software zur Verbesserung eingetragen. Hilf mit, ihn zu bearbeiten und beteilige dich an der Diskussion! Vorlage:Portalhinweis/Wartung/Freie Software …   Deutsch Wikipedia

  • RPM Package Manager — …   Википедия

  • Smart Package Manager — Infobox Software name = Smart Package Manager caption = Smart Package Manager on Ubuntu collapsible = author = developer = released = latest release version = 1.1 [http://lists.labix.org/pipermail/smart labix.org/2008 September/003751.html]… …   Wikipedia

  • Debian Package Manager — dpkg ist die Basis der Paketverwaltung des Betriebssystems Debian und das grundlegende Programm zum Installieren und Manipulieren von Debian Binärpaketen (Dateiendung „.deb”). Der Name dpkg ist eine Abkürzung für Debian Package. Das Debian… …   Deutsch Wikipedia

  • Red Hat Package Manager — RPM Package Manager Aktuelle Version: 5.1.9 (18. April 2009) Betriebssystem: Unixoide Systeme wie bspw …   Deutsch Wikipedia

  • Red Hat Package Manager — RPM Package Manager Pour les articles homonymes, voir RPM. RPM Package Manager (Red Hat Package manager ou RPM) est un système de gestion de paquets de logiciels utilisé sur certaines distributions GNU/Linux. Le système est composé d un format… …   Wikipédia en Français

  • Synaptic Package Manager — Infobox Software name = Synaptic Package Manager caption = A screenshot of Synaptic developer = Michael Vogt latest release version = 0.61 latest release date = release date and age|2007|12|06 operating system = Linux genre = Package manager… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”