Debian Admin - Your way to Debian World

October 1, 2006

Install .rpm Files in Debian and Ubuntu

by @ 10:39 am. Filed under Package Mgmt

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Some time you might find some applications are having only .rpm files but you want a .deb package for your debian,Ubuntu and other debian derived ditributions.If you can’t find .deb debian package in any of the debian,ubuntu repositories or elsewhere, you can use the alien package converter to install the .rpm file.

Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.

Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations.

Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version.

Install alien in debian

#apt-get install alien

This will install all the required packages.Now you can start converting your .rpm files to .deb packages.

Available Options for alien

Convert the package.rpm into a package.deb

#alien -d package-name.rpm

Convert the package.rpm into a package.deb, and install the generated package.

#alien -i package-name.rpm

If you want to keeps alien from changing the version number use the following command

#alien -k rpm-package-file.rpm

Example

Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file

To convert .rpm to debian

#alien -k avg71lms-r30-a0782.i386.rpm

Now you should be having avg71lms-r30-a0782.i386.deb file

To install .deb file

#dpkg -i avg71lms-r30-a0782.i386.deb

If you don’t use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1

Install alien in Ubuntu

$sudo apt-get install alien

You can check the above section for available options

Example

Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file

To convert .rpm to debian

$sudo alien -k avg71lms-r30-a0782.i386.rpm

Now you should be having avg71lms-r30-a0782.i386.deb file

To install .deb file

$sudo dpkg -i avg71lms-r30-a0782.i386.deb

If you don’t use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1

If you want more available options for alien check alien man page

Tags: , , , ,

You may also be interested in...

12 Responses to “Install .rpm Files in Debian and Ubuntu”

  1. Mark Says:

    Why not just install the .rpm file directly using smart, rather than converting it using alien and then installing it with dpkg.

    One less step involved that way.

    http://labix.org/smart
    http://labix.org/smart/features

    http://packages.debian.org/unstable/source/smart

    http://www.linux.com/article.pl?sid=06/07/07/1612259

  2. Admin Says:

    thanks for your suggestion.I will write an article how to use smart after testing

  3. Imran Says:

    I think using alien is safer in some cases, as you can look at the generated
    .deb file and see what files it will install to make sure the package will
    not change any critical files.

  4. Manish Says:

    the instructions helped me a lot with my installation.

    thanks and keep up the good work

    newbie

  5. Shinbu-Otaku Says:

    I have used Alien last night to install both AVG and the newest K9copy, but i have problems with both. By the looks of things i cannot update AVG as i do not have the privileges, and K9copy does not have a launcher, so i have to boot it from the terminal. Can anyone help me on either of these (i might be wrong with the AVG one, it might only let you update when new updates are available but tells u that you dont have the privileges other wise)

  6. Johnny Says:

    I converted an rpm of KDMTheme to a .deb file and it seems to have installed but I can’t find the program for the life of me. Please help!

  7. joshh Says:

    I just installed ubuntu on my laptop and cant figure out how to install anything on it… I’ve been using windows my whole life! I have a pile of rpm, tar.gz(2)’s, and kth files on desktop waiting to be installed. I am a complete n00b.

    I’m scratching my head over this one…

    any help would be great!

    email:
    j.kerns@hotmail.com

  8. Admin Says:

    if you want to install .rpm you need to open terminal and you need to install from command line.

    If you want to unpack tar.gz file

    you need to use the following commnad

    tar xzvf filename.tar.gz

    If you want unpack tar.gz2 file you need to use the following command

    tar jxvf filename.tar.gz2

  9. Dov Says:

    Why not just refer a new user to the Package Manager? He’ll most likely find all he wants there easily?

  10. fireashes Says:

    I have the same problem as #5 Shinbu-Otaku about the AVG. : i cannot update AVG as i do not have the privileges. Can anyone help me. (i might be wrong with the AVG one, it might only let you update when new updates are available but tells u that you dont have the privileges other wise)

  11. zama Says:

    Hi.. i got this new machine installed with linux on it now i am trying to install rpm packages and to configure the mail server it gives me a hard time i can;t find the solution to it.i have been google it but still then i can;t seem to find the right solutions. if can anyone help me, i real need to see this. thanks

    any help will be appreciated.

  12. Chris Snyder Says:

    Folks, if you are a new user trying to install Linux software, the tool described in this post is not for you. Different Linux distributions (Ubuntu, Fedora, Debian, SUSE, etc) each have their own packages and package formats. It is generally a bad idea to try to install a package meant for one distribution onto another. You can’t just mix and match like you can (to some extent) in Windows.

    Please refer to the official website and help forums for your specific Linux distribution for how to install the software you need.

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.