How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (2024)

Improve

Most of the time there are packages (in repositories and GitHub) that are ready to use. But sometimes packages are not available in binaries (ready to install on the go) we have to download the source code and build from scratch. This is not an issue if you have time but for increasing Productivity.

Here is where Alien (package converter) comes into place. If an application like Zenmap (Nmap should be pre-installed) is readily available in .rpm form instead of .deb. We can convert that .rpm package to .deb on the go using alien, and we could install zenmap directly.

Installing the alien tool

Alien is available in most of the repositories but, In case you don’t have it you can find and install it from alien-git here. Here is the list of commands to be executed for the installation of the tool.

For Kali or other Debian based Distribution:

sudo apt-get install alien 

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (1)

To open the alien command manual page

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (2)

Converting package from .rpm to .deb

1. Locate or download .rpm package of the software to be installed (Package used as an example can be downloaded from here).

2. Click on zenmap-7.91-1.noarch.rpm to get the rpm file(Skip this step if you are using your own rpm file)

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (3)

3. The next step is to Use Alien to convert .rpm to .deb. Switch to the directory in which the package is located using the cd command.

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (4)

alien --to-deb [file_name.rpm]

Note:- Replace file_name.rmp with the respective rmp file.

4. Then it can be seen that the Debian file is created for the package

5. Install the package using the following commands

chmod +x [file_name.deb]sudo apt-get install ./[file_name.deb]

Note:- Replace file_name.deb with the respective deb file.

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (5)

6. That’s it our application got installed and could be launched from the terminal using the application name

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (6)


Last Updated : 02 Nov, 2020

Like Article

Save Article

Share your thoughts in the comments

Please Login to comment...

How to Convert .rpm package to .deb using alien Package Converter? - GeeksforGeeks (2024)

FAQs

How to install rpm package in Linux using alien? ›

Let's look at the prerequisites before we run through the steps of installing RPM files on Ubuntu.
  1. The Prerequisites.
  2. Step #1: Install Alien on Ubuntu.
  3. Step #2: Convert RPM Files to the DEB Format.
  4. Step #3: Install the Converted RPM Package on Ubuntu.
Feb 15, 2024

How are .DEB packages different from .rpm packages? ›

In the land of Linux, there are two main package managers: RPM and DEB. RPM is used by Red Hat-based distributions such as Fedora and CentOS, while DEB is used by Debian-based distributions such as Ubuntu and Linux Mint. Both RPM and DEB are used to install, update, and remove software packages on Linux computers.

How to install an rpm file in Debian? ›

Install RPM Packages on Debian 12, 11 or 10
  1. Step 1: Obtain the RPM Package. Before installing an RPM package, you need to obtain the RPM file. ...
  2. Step 2: Convert the RPM Package to DEB Format. ...
  3. Step 3: Install the Converted DEB Package. ...
  4. Step 4: Verify the Installation.
Oct 20, 2023

How to use alien to convert rpm? ›

RPM/AlienHowto
  1. Installing an RPM file directly. In a terminal, enter: sudo alien -i package_file.rpm.
  2. Converting the RPM file to a Debian package. In a terminal, enter: sudo alien package_file.rpm.
  3. Installing the converted Debian package. Either use gdebi, or in a terminal, enter: sudo dpkg -i package_file.deb.
Nov 9, 2012

Can I install RPM package in Debian? ›

RPM files are primarily used on Red Hat-based distributions (CentOS 7, RHEL, Fedora Linux). To install RPMs on Ubuntu, Fedora, or Debian, you may need to convert them to DEB format using tools like alien.

How to install RPM package in Oracle Linux? ›

Running RPM Packages to Install Oracle Database
  1. Log in as root .
  2. Download the . rpm file required for performing an RPM-based installation to a directory of your choice. For example, download the oracle-database-ee-18c-1.0-1. ...
  3. Install the database software using the yum localinstall command. Copy.

Which command is used to install RPM package? ›

rpm Command Options
-e , --eraseRemoves a package.
-i , --installInstalls a package.
-l , --listLists files in a package.
-q , --queryQueries a package.
-s , --stateDisplays the state of the listed files.
11 more rows
1 day ago

How to install an rpm file on Ubuntu? ›

10 Simple Steps to Install RPM Packages on Ubuntu
  1. Update package lists: Run sudo apt update in the Terminal.
  2. Install rpm and alien: Use sudo apt install rpm alien command.
  3. Download the RPM package from a trusted source.
  4. Convert and install: Navigate to the package directory and run sudo alien --to-deb package.

What can I do with RPM package? ›

A file with the RPM file extension is a Red Hat package manager file that's used to store installation packages on Linux operating systems. These files provide an easy way for software to be distributed, installed, upgraded, and removed since they're "packaged" in one place.

How to install RPM packages? ›

Standard RPM installation
  1. Open a terminal and navigate to the location of the . rpm file.
  2. Execute the following command with superuser permissions: rpm -i filename .rpm. This installs the product to the following default location - /opt/microfocus/VisualCOBOL.

What is RPM and DEB? ›

RPM is the installation package format for Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES) distributions. DEB is the package format for the Ubuntu distribution.

How to install .RPM file in Ubuntu using terminal? ›

How to Install RPM Packages On Ubuntu
  1. Step 1: Add the Universe Repository.
  2. Step 2: Update apt-get.
  3. Step 3: Install Alien package.
  4. Step 4: Convert .rpm package to .deb.
  5. Step 5: Install the Converted Package.
  6. Step 6: Install RPM Package Directly Onto the System on Ubuntu.
  7. Step 7: Possible Issues.
Mar 1, 2018

What is the option to install with RPM in Linux? ›

We can install the RPM package with the following command: rpm -ivh <package name> . Note the -v option will show verbose output and the -h will show the hash marks, which represents action of the progress of the RPM upgrade. Lastly, we run another RPM query to verify the package will be available.

How to install RPM package without dependencies in Linux? ›

How to Install RPM Package Without Dependencies. To install an rpm package without dependencies, you can use --nodeps option, which will forcefully install an RPM package without checking or resolving dependencies.

Which command converts an RPM package to Debian format? ›

Tools for Conversion

The main tool for converting RPM to DEB is alien . Alien is a program that converts between different Linux package formats, including RPM, DEB, and others.

How to extract an RPM package? ›

The easiest way to extract the contents of RPM packages is to combine the rpm2cpio and cpio commands. This gives a command-line way to unpack an RPM in the current directory to get at the package contents, ignoring the package's metadata and dependencies.

How do I install and uninstall an RPM package? ›

Things You Should Know
  1. Use "rpm -i packagename. rpm" to install a package.
  2. To delete a package, use "rpm -e packagename. rpm."
  3. You can use other flags with the rpm command to test installations, specify install paths, and more.

How to install a package from rpm? ›

Standard RPM installation
  1. Open a terminal and navigate to the location of the . rpm file.
  2. Execute the following command with superuser permissions: rpm -i filename .rpm. This installs the product to the following default location - /opt/microfocus/VisualCOBOL.

Top Articles
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 5686

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.