Linux - RPM package (RPM: Red Hat Package Manager)

About

RPM are packages file that you can install on Linux system.

This package format was created by Red Hat and standardized by the LSB.

It's widely adopted, including in openSUSE.

They are .cpio files and you can unpack their contents.

If you don't have them, you can find them via rpmfind

They are managed through a package manager.

RPM is also a tool. The Red Hat Package Manager (RPM) is a toolset used to build and manage software packages on UNIX systems. Distributed with the Red Hat Linux distribution and its derivatives (CentOS).

Package naming scheme

The naming scheme of RPM files is itself a standardized convention. RPMs have the format

(name)-(version)-(build).(platform).rpm. 

For example, the name cat-2.4-7.i386.rpm would mean an RPM :

  • for the utility “cat”
  • version 2.4, build 7
  • for the x86 (When the platform name is replaced by “src”, it's a source RPM)

How to

install them

Via the shell

You install them with a package manager.

With yum

yum install packageName

Gnome gui

On Red Hat / Oracle Entreprise Linux

With the Gnome gui

Linux Package Installation

user scope

unzip them.

RPM packages are .cpio files, and you can unpack their contents with the cpio utility.

rpm2cpio my.rpm | cpio -idv

See if a package is already installed

Use your package manager list function.

For instance, for checking if a package is installed or to find out all packages that match a string is with the rpm tool

rpm -qa | grep -i python 

where:

  • q = query
  • a = all

deinstall a package ?

From the command above, take the package name (without the architecture and rpm extension) and perform the following command

rpm -e package

where:

  • e = erase

Documentation Location

The location of the documentation for installed packages is: /usr/share/doc

For example, the documentation for the redhat-config-date software package is located in /usr/share/doc/redhat-config-date-

''
List

List a package or groups of packages

yum list
List the installed files

First find the name of your package

yum list name

Then list the installed content

rpm -ql packageName
# example
rpm -ql sqlite.x86_64
/usr/bin/sqlite3
/usr/lib64/libsqlite3.so.0
/usr/lib64/libsqlite3.so.0.8.6
/usr/share/doc/sqlite-3.7.17
/usr/share/doc/sqlite-3.7.17/README
/usr/share/man/man1/sqlite3.1.gz

Info
yum info python
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Installed Packages
Name       : python
Arch       : x86_64
Version    : 2.4.3
Release    : 56.el5
Size       : 73 k
Repo       : installed
Summary    : An interpreted, interactive, object-oriented programming language.
URL        : http://www.python.org/
License    : PSF - see LICENSE
Description: Python is an interpreted, interactive, object-oriented programming
           : language often compared to Tcl, Perl, Scheme or Java. Python includes
           : modules, classes, exceptions, very high level dynamic data types and
           : dynamic typing. Python supports interfaces to many system calls and
           : libraries, as well as to various windowing systems (X11, Motif, Tk,
           : Mac and MFC).
           :
           : Programmers can write new built-in modules for Python in C or C++.
           : Python can be used as an extension language for applications that need
           : a programmable interface. This package contains most of the standard
           : Python modules, as well as modules for interfacing to the Tix widget
           : set for Tk and RPM.
           :
           : Note that documentation for Python is provided in the python-docs
           : package.

Find / provide

Find what package provides the given file

yum provides *GLIBCXX_3.4.8*
libstdc++-4.1.2-50.el5.i386 : GNU Standard C++ Library
Repo        : ol5_u6_base
Matched from:
Other       : libstdc++.so.6(GLIBCXX_3.4.8)

Build a package
Modify

rpmrebuild can be used to:

  • build an rpm file from an installed package (lost rpm)
  • or to quickly make change to a package: just have your change on installed files and call rpmrebuild.
Documentation / Reference





Discover More
Samba Rpm Files
Linux - How to transfer/copy files via a network connection using Samba between Linux and Windows

Samba allows Linux computers to share files and printers across a network connection. By using its SMB protocol, your Linux box can appear in Windows Network Neighbourhood or My Network Places just like...
Oracle Entreprise Linux Dvd X86 Edelivery
Linux - Installation of OEL 5 Update 3 on VMWare 32-bit (x86) machine

This article is a step-by-step manual to install Oracle Entreprise Linux 5 on a . Download the Oracle Entreprise Linux 5 : Go to...
Oracle Entreprise Linux Dvd X86 Edelivery
Linux - Installation of OEL 5 Update 5 on VMWare 32-bit (x86) machine

This article is a step-by-step manual to install Oracle Entreprise Linux 5 on a . Download the Oracle Entreprise Linux 5 : Go to...
Linux - Package

Package in Linux are managed by package manager. The most used kind of package formats are: tgz (tar gzip files) - source code archives that need to be compiled in order to run the software. ...
Linux - Package Repository

A Package Repository is where OS package are stored. This repository are used by package manager such as yum to search and install packages With yum Output example: yum-config-manager dnf...
Oracle Database 11gr2 Typical Installation
Oracle Database - Installation 11g Release 2 (11.2) on Linux OEL 5 (X86)

Installation of Oracle Database 11g Release 2 (11.2) on Oracle Enterprise Linux 5. Linux OEL installation login as root RAM: At least 1 GB swap space The following table describes...
Linux Installation Optional Package Oracle Validated
Oracle Database - Oracle Validated Configuration RPM for a Linux Installation

The Oracle Validated Configuration RPM can be installed on servers using Red Hat Enterprise Linux or Oracle Enterprise Linux operating systems. It is available since 11.1 from the Unbreakable Linux Network...
Oracle Database Installationl Location 11gr2 Oel Linux X86 64
Oracle Database 11gR2 - Installation on Linux OEL 5 Update 5 (x86_64)

Installation of Oracle Database 11g Release 2 (11.2) x86_64 on Oracle Enterprise Linux 5 Update 5 on the file system (ie without ASM) or GRID. Linux OEL installation login as root ...
Bash Liste Des Attaques Ovh
Sh - Sysstat Package (Sys Monitoring packages)

The sysstat package contains utilities to monitoring system metrics performance and usage activity. Utility Description iostat reports CPU statistics and input/output statistics for devices, partitions...
What is the yum command (Yellowdog Updater Modified) ?

yum is a software package manager. It is a tool for installing, updating, and removing packages and their dependencies on RPM-based systems. It automatically computes dependencies and figures out what...



Share this page:
Follow us:
Task Runner