I have a burning desire to install RPMs onto my Ubuntu installation - is this possible? Can I use Yum - or another RPM Package Management tool?
I have a burning desire to install RPMs onto my Ubuntu installation - is this possible? Can I use Yum - or another RPM Package Management tool?
I wouldn't recommend it. You probably could compile it but you wouldn't have any Ubuntu-compatible package repositories for it to handle.
You can convert single RPM files into DEBs with Alien:
Note: It might change the filename a little more than just the extension.
This won't work for everything as packages link to other packages to fulfil dependencies. Obviously Red Hat/Fedora/CentOS use different package names to Ubuntu so you're likely going to run into a whole load of pain.
Chances are if a DEB doesn't exist, you'll be better off just getting the source and compiling it.
You will need
alien
to do that.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
Convert the
package.rpm
into apackage.deb
, and install the generated package.If you want to keep alien from changing the version number use the following command
The short answer is, Don't!
If you got an RPM that is so important that you need to have it, there is probably a Ubuntu package as well; and, if not, it is probably worth going through the trouble of compiling it from source into the Debian package format (that Ubuntu uses as well). Now, there are certain times when you can't just recompile the software (if it's not opensource it's impossible) and in that case you can use the
alien
program. But, installing from RPM's is a little like putting gasoline in a diesel car - it might work, but you wont benefit from it in the long run!To build a package from source, there is a guide on the Ubuntu Wiki; there is also a program called checkinstall that can do some tricks with a default source-tree without setting up build instructions for the package. If you think that someone else can benefit from the programs that you compile, you can setup a repository on launchpad and share the package goodness!
Theres a GUI package manager named SmartPM on the Repos, it can handle .deb AND .RPM. Canonical contributed to this project up to November 2009.
The projects home page is here https://github.com/smartpm/smart
If you really need to install RPMs on your system you should indeed try to convert them using 'alien'.
Please keep in mind that by default 'alien' will meddle with the version number of the package. If you want the version number to stay the same, pass the option '-k' when converting.
You should not try to use Yum or any other way of installing the RPMs, such as apt-rpm, themselves next to the existing DEB packages. The DEB and RPM systems manage the list of installed software separately and therefore don't know what packages were installed previously by the other system. If, e.g., you'd try to install a GUI-bearing application with an RPM-based package management system, it'll try to install vital system components itself, because it thinks they are not installed yet. This will either cause the installation to fail horribly, or overwrite vital system files.
Alien is a tool that convert from one format(.deb or .rpm) to another (.deb, .rpm or tarball)
Alien is not advised to use in converting from .deb to .rpm its perfect to use in converting .deb to tarballs
Althought Alien attempts to preserve meta-data when converting but it will still have Metadata & dependency problems make package less reliable and thus will conflicts ehen adding or removing distirbution packages in the future.
Actually shortest option is
Don't have an alien? Get one!
Alien will convert rpm package into deb package, the -i option means install the converted package after is converted and the -k option ensure version is not +1 after conversion.
Follow these instructions:
Now you should be having
avg71lms-r30-a0782.i386.deb
file.To install .deb file:
If you don't use
-k
option you should seeavg71lms_r30-1_i386.deb
file the difference is it will add 1.Install alien in Ubuntu:
You can check the above section for available options
With alien I can just convert the .rpm file to a .deb file and simply install that one.
Alien is available in the normal Debian repositories, so we can install it like this:
To convert it into a .deb package, we simply run
use alien which converts the rpm to deb and subsequently installs the deb.