PDA

View Full Version : [all variants] Using .rpm and .deb simultaneously



john.hall
June 20th, 2008, 04:27 PM
If I download an rpm and use rpm -i <pkg>, will apt know that I have installed the rpm?

Is the reverse also true? If I install rpm, will it know what packages I already have on my system due to apt-get install?

Or is there a way to make dpkg understand .rpm files?

skymera
June 20th, 2008, 04:30 PM
RPM can't be used on Ubuntu.

That is a RedHat file.

what are you trying to install?

the_doc
June 20th, 2008, 04:32 PM
You can convert to .deb using alien.

Cypher
June 20th, 2008, 04:32 PM
You can't use RPM's natively, you'll have to use Alien to convert them to DEBs to be installed in Ubuntu.

john.hall
June 20th, 2008, 04:33 PM
OK. I got it.

Thanks!

drs305
June 20th, 2008, 04:33 PM
To simplify installation and tracking, convert rpm's to deb files with 'alien'.

Install alien:

sudo aptitude install alien

Convert rpm to deb:

sudo alien -k /path-to-rpm-file/rpmfile


Install deb:

sudo dpkg -i fullappname.deb

harlan
June 20th, 2008, 04:35 PM
To install a rpm package:
1.Install alien:
$sudo aptitude install alien
2.Install de rpm:
$sudo alien -i package.rpm

Somebody was faster than me

Oldsoldier2003
June 20th, 2008, 05:24 PM
Although you can use alien, it should really be considered as a last resort. If you can't find the deb in the Ubuntu repos or in a source such as getdeb you can usually compile the program yourself.

Jonte_J
June 22nd, 2008, 07:37 AM
What if I want to uninstall an rpm package? How is that done?

/jonas

drs305
June 22nd, 2008, 11:14 AM
What if I want to uninstall an rpm package? How is that done?

/jonas

In other linux distributions, they are removed with "rpm -e appname".

In ubuntu, if you converted the rpm into a deb package with alien and then installed it normally (double click, gdebi, etc), it is registered and can be removed via the normal uninstall methods (synaptic, apt-get remove, aptitude remove/purge, dpkg etc).

Paqman
June 22nd, 2008, 11:44 AM
Although you can use alien, it should really be considered as a last resort. If you can't find the deb in the Ubuntu repos or in a source such as getdeb you can usually compile the program yourself.

Actually, i'd recommend using a deb made from an rpm over compiling. At least it'd be uninstallable, and won't break the dependency system like compiling will.

I'd definitely say compiling is the absolute last resort.