How-To Geek
Install an RPM Package on Ubuntu Linux
Installing software on Ubuntu usually entails using Synaptic or by using an apt-get command from the terminal. Unfortunately, there are still a number of packages out there that are only distributed in RPM format.
There’s a utility called Alien that converts packages from one format to the other. This doesn’t always mean that an rpm will work on your system, though. You will need to install some prerequisite software packages in order to install alien, however. These packages include gcc and make.
Run this command to install alien and other necessary packages:
sudo apt-get install alien dpkg-dev debhelper build-essential
To convert a package from rpm to debian format, use this command syntax. The sudo may not be necessary, but we’ll include it just in case.
sudo alien packagename.rpm
To install the package, you’ll use the dpkg utility, which is the internal package management tool behind debian and Ubuntu.
sudo dpkg -i packagename.deb
The package should now be installed, providing it’s compatible with your system.
Got Feedback? Join the discussion at discuss.howtogeek.com
Comments (17)
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 11/27/06




Worked great thank you.
Worked for me thanks…
Cool as school – worked a treat! Thanks
Where does it copy files?! i’m struggling 2 hours to install java JDK rpm file :(
NetBeans ask for JDK path, where it will be after installing JDK with rpm?!
Thanks
Why would you install the JDK with an RPM?
after i install the rpm file..why i still cannot install the qmail packet in ubuntu?
Works just perfect, any other way to do that?
Im so grateful :D
How about Converting .rpm files to .deb files?
Some Debian files are not available in RPM.
i have /home/okkie/Desktop/pips-sc43s-cups-2.6.2-2.i386.rpm on my desktop
i followed ypur instructions to use alien but comp tells me package on the desktop can’t be found.I did the exercise in root.
Thanks for the guide :)
Thanks for this simply solution!
Hi,
I’ve done this before and It’s always worked fine, except for now. After I
sudo alien
it says:
generated
But I can’t find it anywhere! Has anyone ever faced this problem?
Thanks
Same here, Charlie. Didn’t have this problem before…I’m guessing you’re also using Ubuntu 10.10?
Thank you so much!
Just what I needed!!
Thank you, guys! Problem solved.
worked great ,thanx