{"id":1427,"date":"2018-10-23T02:34:59","date_gmt":"2018-10-23T02:34:59","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1427"},"modified":"2018-10-24T02:24:19","modified_gmt":"2018-10-24T02:24:19","slug":"how-to-convert-rpm-to-deb-and-deb-to-rpm-using-alien-command-on-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/23\/how-to-convert-rpm-to-deb-and-deb-to-rpm-using-alien-command-on-linux\/","title":{"rendered":"how to convert rpm to deb and deb to rpm using alien command on linux ?"},"content":{"rendered":"<p>You can use alien command to convert *.deb to *.rpm file. Also, if you have a *.rpm file that you want to install on a Debian or Ubuntu, you can convert the *.rpm to *.deb file using alien command as explained in this article.<\/p>\n<p><a href=\"https:\/\/1.bp.blogspot.com\/-RVTja8IFW4Y\/WTq66qr2T_I\/AAAAAAAART4\/MBvfnCQlQsEXLWaCH3ItkuZTJB6uVSbIQCLcB\/s1600\/Convert-RPM-to-DEB-and-DEB-to-RPM_hackthesec.co.in.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-RVTja8IFW4Y\/WTq66qr2T_I\/AAAAAAAART4\/MBvfnCQlQsEXLWaCH3ItkuZTJB6uVSbIQCLcB\/s320\/Convert-RPM-to-DEB-and-DEB-to-RPM_hackthesec.co.in.png\" width=\"320\" height=\"164\" \/><\/a><\/p>\n<h3><b>Install alien command on Debian \/ Ubuntu<\/b><\/h3>\n<p>Install alien command on Ubuntu as shown below.<\/p>\n<p># sudo apt-get install alien<\/p>\n<p><b>Install alien command on RHEL<\/b><\/p>\n<p>#rpm -Uvh http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-5.el7.nux.noarch.rpm<\/p>\n<p># yum update &amp;&amp; yum install alien<\/p>\n<p><b>1. Convert RPM to DEB<\/b><\/p>\n<p><b>Use alien command to convert rpm to deb file<\/b><\/p>\n<p>The following example converts the linuxconf-devel rpm file to linuxconf-devel deb file. Once you generate the deb file, you can install it on Ubuntu or Debian.<\/p>\n<p>ravi@linuxforfreshers.com:~$ sudo alien -d &#8211;script -k anydesk-2.9.1-2.x86_64.rpm<\/p>\n<p>anydesk_2.9.1-2_amd64.deb generated<\/p>\n<p><b>Note:<\/b> You&#8217;ll also notice that alien has counted up the version number. If you want to keep the original version number, you must use the -k switch:<\/p>\n<p>Use alien to convert deb to rpm file<\/p>\n<p>Use alient -r option to convert a deb file to rpm file. The following example converts libsox deb file to libsox rpm file. Once you generate the rpm file, you can install it on Red Hat, or CentOS.<\/p>\n<p>ravi@linuxforfreshers.com:~\/Downloads$ sudo alien -r anydesk_2.9.1-1_amd64.deb<\/p>\n<p>Warning: Skipping conversion of scripts in package anydesk: postinst postrm<\/p>\n<p>Warning: Use the &#8211;scripts parameter to include the scripts.<\/p>\n<p>anydesk-2.9.1-2.x86_64.rpm generated<\/p>\n<p>In above example i am not used -k so it will update the version automatically.<\/p>\n<p>ravi@linuxforfreshers.com:~$sudo alien -r &#8211;scripts -k anydesk_2.9.1-3_amd64.deb<\/p>\n<p>anydesk-2.9.1-3.x86_64.rpm generated<\/p>\n<p>Where -r, &#8211;to-rpm Generate a Red Hat rpm package<\/p>\n<p>&#8211;scripts Include scripts in package.<\/p>\n<p>-d, &#8211;to-deb Generate a Debian deb package (default).<\/p>\n<p>-k, &#8211;keep-version Do not change version of generated package.<\/p>\n<p>If u want more help check <b>man alien<\/b>.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.linuxforfreshers.com\/2017\/06\/how-to-convert-rpm-to-deb-and-deb-to.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use alien command to convert *.deb to *.rpm file. Also, if you have a *.rpm file that you want to install on a Debian or Ubuntu, you can convert the *.rpm to *.deb file using alien command as explained in this article. Install alien command on Debian \/ Ubuntu Install alien command on &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/23\/how-to-convert-rpm-to-deb-and-deb-to-rpm-using-alien-command-on-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;how to convert rpm to deb and deb to rpm using alien command on linux ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1427","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1427"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1427\/revisions"}],"predecessor-version":[{"id":1488,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1427\/revisions\/1488"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}