Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed

  • Follow Us on Twitter

  • Sponsor


  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

Install .rpm Files in Ubuntu

Posted by admin on December 20th, 2006 Email This Post Email This Post

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 Ubuntu

sudo 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

sudo alien -d package-name.rpm

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

sudo alien -i package-name.rpm

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

sudo alien -k rpm-package-file.rpm

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

Share/Save/Bookmark

Related Articles

3 Responses to “Install .rpm Files in Ubuntu”

  1. Eduardo Rojas Says:

    When I type and enter sudo apt-get install alien:

    this is what I get:

    E: Type ‘“deb’ is not known on line 34 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

    Please tell what to do

    Thanks in advance

  2. vibin Says:

    Plz change ur /etc/apt/sources.list …
    If ur in LAN or doing in home it need to change accordingly
    This file contains the proxy server which u r downloading packages
    Make sure to correct this file in root mode

    If u have any further doubt

    Goto Synaptic Manger>Settings: Repository ..>Third Party S/w tab>Add >Type the according to the example given there (ur appropriate proxy ip)

  3. Dwite Check Says:

    I used the gDebi Package Installer after using the sudo alien -d package-name.rpm command to install

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>