Install DEB files on RHEL, Fedora, CentOS

RPM from DEB: If you use the as the title states, at some point you will (or will) encounter the problem: The package you want to install does not exist as an RPM file. What you can do is download the source code of the package and compile it yourself to create an RPM file.DEB

But there is another way.

Debian-based distributions have far more users than those using RPM files. So the number of packages available in their repositories is much higher.

Thus it is common for the phenomenon to exist as archive DEB the package you want but not as an RPM.

Below we will show you how to install the package you are interested in from a DEB file to distributions RedHat, FedoraAnd Centos Linux with the help of a small utility prothe one called alien.

Installing the alien

Alien is an application that allows to convert various packages. Currently it supports conversion to and from RPM, DEB, Stampede SLP, LSB, Slackware TGZ and Solaris PKG files.

Download the alien from the terminal with the following command:

wget -c https://sourceforge.net/projects/alien-pkg-convert/files/release/alien_8.95.tar.xz

After downloading, unzip the file:

tar xf alien_8.95.tar.xz

Alien uses Perl, so you will need to compile the source. Install Perl with the following command:

dnf  perl

(If you haven't already installed it). You can then proceed with compiling the source of the alien. The command below should be run inside the source code dir. It will compile and continue with the application installation:

perl Makefile.PL; make; make install

Convert DEB packages to RPM

Once the alien is installed, packet conversion is a game. To convert a Debian package to RPM format

alien --to-rpm file-name.deb

where the file name.deb is the downloaded DEB package. This will create the RPM you need to proceed with the installation.

rpm -ivh file name.rpm

The auxiliary alien works great for small packages that don't have many dependencies, but can have problems converting larger packages.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.082 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).