.rpm

What is a .rpm file?

RPM Package · Disk image · Red Hat · 1997

An RPM is a software package for Red Hat-based Linux systems such as Fedora, RHEL and openSUSE. Like a DEB it bundles a program with its metadata and install scripts, and you install it with the system's package manager rather than opening it by hand.

Category
Disk image
Type
Binary
Is a .rpm file safe to open? An RPM installs software with system privileges, so only install packages from a trusted repository or the official vendor.

What is a .rpm file used for?

RPM is the packaging format of the Red Hat family. A .rpm holds the app's files plus information about its version, dependencies and any scripts to run during installation.

You install one with the package manager: dnf install ./file.rpm on Fedora, zypper on openSUSE, or the lower-level rpm -i command. The package manager resolves dependencies for you.

It is the counterpart to the DEB used by Debian and Ubuntu; the two are not interchangeable, though conversion tools exist.

How to open a .rpm file

The .rpm format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list.

Windows

  • Not applicable (inspect with 7-Zip)

macOS

  • Not applicable

Linux

  • Software Center
  • dnf
  • zypper
  • rpm
  • Archive Manager (to inspect)

Web

  • Not applicable

How to convert a .rpm file

You can convert a .rpm file to Not convertible using a conversion tool or the export menu of an app that opens it.

.rpm file signature (magic bytes)

Programs recognise a .rpm file by the bytes at the start of the file, not by its name. These are the signatures for RPM. For a full breakdown, see the RPM file signature page.

Hex signatureOffsetNote
ED AB EE DB0RPM lead magic

See the full magic-numbers reference for every format.

Frequently asked questions

What is a .rpm file?

An RPM is a software package for Red Hat-based Linux systems such as Fedora, RHEL and openSUSE. Like a DEB it bundles a program with its metadata and install scripts, and you install it with the system's package manager rather than opening it by hand.

How do I install an RPM file?

Use your package manager: sudo dnf install ./file.rpm on Fedora or RHEL, or sudo zypper install file.rpm on openSUSE. These resolve dependencies; the plain sudo rpm -i file.rpm does not.

What is the difference between RPM and DEB?

They do the same job for different Linux families: RPM for Fedora, RHEL and openSUSE; DEB for Debian and Ubuntu. Each is installed by its own package manager, and they are not directly interchangeable.

Related formats

Sources

Details on this page were checked against authoritative references: