b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

HOWTO: Install an RPM Package on a Debian Box?

by Jon on November 2nd, 2005

While installing OpenOffice.org 2.0 today I had the opportunity to run across an application named alien. OOo is only available in rpm format and I run a Debian machine. Alien allowed me to install those RPMs on my Debian box.

From the man alien command:

alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. If you want to use a package from another linux 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. It also supports LSB packages.

To install my OOo rpms on my Debian machine, I opened a terminal window, became root and in in the directory that contained the RPMs I wanted to install, I typed:

alien -i *.rpm

Use the alien man page to check out how you can change packages from one format to another. A very handy utility.

POSTED IN: How To

14 opinions for HOWTO: Install an RPM Package on a Debian Box?

  • geoff
    Nov 2, 2005 at 8:59 pm

    Based on what it’s doing, I expected I’d have more errors while using alien. I’ve used it three times now, and have had zero errors (during both the conversion and the install).

  • Jon
    Nov 2, 2005 at 10:21 pm

    I’ve never used it before today, but using it to install 28 OOo RPMs is quite the inaugural challenge.

    No probs…freakin’ neat!

  • New Linux User » HOWTO: Install OpenOffice.org 2.0 on a Debian Machine?
    Nov 3, 2005 at 6:35 pm

    […] I recently wrote a quick entry about using alien to install OpenOffice.org v2.0 on my Debian box. […]

  • Jeff
    Nov 4, 2005 at 9:29 pm

    What if the rpm file name ends with .bin?

  • Jon
    Nov 4, 2005 at 11:37 pm

    Hi Jeff,

    I’m not sure what you mean. Do you have a file with that ends in ‘bin’? If so, you should be able to just chmod it to make it executable and run it.

    chmod +x filename.bin
    ./filename.bin

    Am I close? Give me some more info and we’ll figure it out.

  • John
    Nov 7, 2005 at 6:22 pm

    I loaded debian on my two sons computers and added alien because some of the games they want are rpm and tar.gz but after after using alien to install I don’t find the programs. I find files in the name but they dont function (execute sorry to many microsoft years). the command I used as root is alien -i the drive whirrs for a while and then my name pops back up as if its done…. No games????
    Help?

  • Jon
    Nov 8, 2005 at 6:45 am

    Hi John,

    I have two thoughts on this. First, perhaps this entry (click) on how to find files on your system may help you out.

    If not, can you give me more information on what you’re installing? If I know the actual applications I may be able to install them myself and then go looking for them to see where they went.

  • wimac|project » links for 2006-02-12
    Feb 15, 2006 at 1:25 am

    […] New Linux User » HOWTO: Install an RPM Package on a Debian Box? (tags: Linux tutorial rpm debian) […]

  • shailesh
    Jun 20, 2006 at 12:23 am

    ok sir this is fine, but i want to install .deb package into red hat fedora 4. i have tried .plz.. help me

  • Jon
    Jun 20, 2006 at 4:59 am

    You can still use alien. Alien will convert a package into a package for the platform it’s being run on.

  • Austin
    Jul 11, 2006 at 9:57 pm

    hi jon… I am having the same problem that you did on your sons computers.. I downloaded a .rpm then used alien to install the program…
    I can see the files it installed but cant seem to execute the program. I can’t figure out how to start them. it was not added to the menu..

    By the way the program I downloaded was winamp

  • Jon
    Jul 12, 2006 at 5:05 am

    Hi Austin,

    I’m confused. Winamp is a Windows application. As far as I know, it doesn’t come in RPM format since it doesn’t come for Linux at all.

  • freebsd vps
    Mar 5, 2008 at 10:03 am

    Maybe you meant another mp3 player, such as xamp which is made for Linux?

  • webdesign
    May 28, 2008 at 5:17 am

    Thx for the support.. but i got some errors with the scripts not converting..? any body now how i can use the scripts.

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing