{"id":16009,"date":"2022-03-18T23:53:46","date_gmt":"2022-03-18T23:53:46","guid":{"rendered":"https:\/\/linuxways.net\/?p=16009"},"modified":"2022-03-18T23:53:46","modified_gmt":"2022-03-18T23:53:46","slug":"how-to-install-rpm-on-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-rpm-on-ubuntu\/","title":{"rendered":"How to Install RPM on Ubuntu"},"content":{"rendered":"<p>Deb files are used to install packages in Debian-based distributions such as Ubuntu, Debian, and Mint. However, sometimes the package you need only comes in RPM format. If this is the case, you can install an RPM package on Ubuntu using the Alien program. This program allows you to convert an RPM file to a deb file or it can install an RPM file directly to your Ubuntu machine.<\/p>\n<p>In today\u2019s post, we will describe how to install RPM on Ubuntu OS. This method can also be followed in other Debian-based distributions.<\/p>\n<h2>Installing RPM on Ubuntu<\/h2>\n<p>RPM is a file extension that is used to install packages in RHEL, <a href=\"https:\/\/linuxways.net\/de\/centos\/how-to-install-rpm-packages-on-centos-8\/\">CentOS<\/a>, and Fedora. You can install an RPM file on Ubuntu using the Alien package converter. Through Alien, you can either convert an RPM file to a deb file and install it using the default package manager. Or you can install an RPM package directly to your Ubuntu OS.<\/p>\n<h3>Method#1 Converting and Installing RPM on Ubuntu<\/h3>\n<p>In this method, we will first convert the RPM file to a deb file through the Alien package converter. Then we will install this deb package using the Apt package manager.<\/p>\n<h4>1. Download RPM Package<\/h4>\n<p>Download the RPM package that you want to install on Ubuntu system. For demonstration, we will be installing the Skype RPM package on Ubuntu.<\/p>\n<p>We have downloaded the Skype RPM package from its official <a href=\"https:\/\/www.skype.com\/en\/get-skype\/\">website<\/a> through the following command.<\/p>\n<pre>$ wget https:\/\/repo.skype.com\/latest\/skypeforlinux-64.rpm<\/pre>\n<h4>2. Install Alien Package Converter<\/h4>\n<p>Now install alien package converter using the following command:<\/p>\n<pre>$ sudo apt install alien<\/pre>\n<p>It may ask for your approval for the operation. Hit <strong>y<\/strong> to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"378\" class=\"wp-image-16010\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-67.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-67.png 885w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-67-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-67-768x328.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/p>\n<p>This will install the Alien package converter on your system.<\/p>\n<h4>3. Convert RPM file to Deb<\/h4>\n<p>Now that Alien has been installed, you can use it to convert an RPM file to a deb file. Run the command below to convert the RPM file to deb:<\/p>\n<pre>$ sudo alien &lt;RPM_Package_Name&gt;<\/pre>\n<p>For the Skype RPM package, we have used the following command:<\/p>\n<pre>$ sudo alien skypeforlinux-64.rpm<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"470\" class=\"wp-image-16011\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-68.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-68.png 870w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-68-300x162.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-68-768x415.png 768w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/p>\n<p>This command will convert the specified RPM file into a deb file.<\/p>\n<h4>4. Install converted Deb file<\/h4>\n<p>Now in order to install the converted deb file, run the following command:<\/p>\n<pre>$ sudo dpkg -i skypeforlinux_8.82.0.403-2_amd64.deb<\/pre>\n<p>This command will install the deb file on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"248\" class=\"wp-image-16012\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-69.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-69.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-69-300x102.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h3>Method#2 Directly Installing RPM on Ubuntu<\/h3>\n<p>In this method, we will directly install RPM file on Ubuntu using the Alien package converter.<\/p>\n<h4>1. Download RPM Package<\/h4>\n<p>Download the RPM file that you want to install on your Ubuntu machine. For demonstration, we will be installing the Skype RPM package on Ubuntu.<\/p>\n<p>We have downloaded the Skype RPM file from its official <a href=\"https:\/\/www.skype.com\/en\/get-skype\/\">website<\/a> through the following command.<\/p>\n<pre>$ wget https:\/\/repo.skype.com\/latest\/skypeforlinux-64.rpm<\/pre>\n<h4>2. Install Alien Package Converter<\/h4>\n<p>Install alien package converter using the following command:<\/p>\n<pre>$ sudo apt install alien<\/pre>\n<p>It may ask for your approval for the operation. Hit <strong>y<\/strong> to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"378\" class=\"wp-image-16013\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-70.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-70.png 885w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-70-300x128.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-70-768x328.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/p>\n<p>This will install the Alien package converter on your system.<\/p>\n<h4>3. Install RPM file<\/h4>\n<p>Through Alien converter, you can directly install the RPM file without converting it to a deb file. Run the command below to install the RPM file using the Alien package converter:<\/p>\n<pre>$ sudo alien --install &lt;RPM_Package_Name&gt;<\/pre>\n<p>For the Skype RPM package, we have used the following command:<\/p>\n<pre>$ sudo alien --install skypeforlinux-64.rpm<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"577\" class=\"wp-image-16014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-71.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-71.png 878w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-71-300x197.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-71-768x505.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/p>\n<p>This command will install the RPM file on your Ubuntu system.<\/p>\n<p>In this post, we covered how to install RPM on Ubuntu through two different ways using the Alien package converter. However, remember that this is not the recommended way for installing a package in Ubuntu. It is better to prefer installing the packages from the default repositories or using the deb packages available at the official websites.<\/p>","protected":false},"excerpt":{"rendered":"<p>Deb files are used to install packages in Debian-based distributions such as Ubuntu, Debian, and Mint. However, sometimes the package you need only comes in RPM format. If&hellip;<\/p>","protected":false},"author":1,"featured_media":16056,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[933,31],"class_list":["post-16009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-rpm","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=16009"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16009\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/16056"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=16009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=16009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=16009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}