Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • RSS Subscribe

    subscribe to the Debian Admin RSS feed
  • Sponsors



  • Categories

  • Sponsors

  • Support DebianAdmin

    Amount $:
    Website(Optional):


  • Meta

  • Archives



Install .rpm Files in Debian and Ubuntu

Posted by Admin on October 1st, 2006

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

Applying for debt help becomes inevitable sometimes when the student loans are not enough to cover houston homes for sale and the mortgage rates are too high to go for them.

  • Share/Bookmark

20 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.

  13. Amol Shende Says:

    How to get GUI on UBUNTU 8.04 LTS server.

  14. Kevin Valentine Says:

    Hi Amol,

    Been over 2 months so you’ve probably figured it out by now, but what the heck …
    You need to install the ubuntu-desktop package as follows:
    sudo apt-get install ubuntu-desktop

    Answer yes to whatever questions it may ask, make sure you have enough disk space, then walk away for about 2 hours. When you come back you’ll most likely still have black screen. Need to start gdm like this:
    sudo /etc/init.d/gdm start

    Hopefully bulletproof X won’t give you trouble ;)

  15. Adam Says:

    Why didn’t anyone respond to John (#6)?? I am having the same problem, I know that not all linux distros are the same, but if dpkg says something is installed, how the heck do I use it??

  16. racolavito Says:

    I am new to Linux. 3 Days. I have installed Ubuntu 8.1 on my computer. It wiped out the loading of my Windows XP. Then I tried to load the program Openoffice 3.0. It downloaded but then I can not get it to install. You say get the version for your operating system but I could only find a RPM version and that was from the OpenOffice.org webpage.

  17. 0guzhan Says:

    Thanks… Very much useful…

  18. mandy Says:

    the problem of installing .rpm files for noobs is still not addressed. please somebody care to guide…:)

  19. humtaro Says:

    An alien GUI

    http://code.google.com/p/foxoman/wiki/PackageConverter

  20. Ran Says:

    I just install a gyachi by converting .rpm to deb but when the installation is complete the gyachi can’t seem to work. What is the probable problem please help I am just a noob.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>