Ubuntu – How to install rpm package in ubuntu when Alien fails

dpkgdriversrpm

I have an RPM package for a driver for my usb device, and a deb package for it doesn't exist. Alien fails, giving me a bunch of errors.

Lots of:

error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch

I've heard that I can convert an rpm to a tar archive and then manually copy some files to some directories. Is that true?

Best Answer

You can always convert RPM files into DEBs with alien command:

$ sudo apt-get install alien
$ sudo alien my_package.rpm
$ sudo dpkg -i my_package.deb

but chances are you'll fail installing the DEB package, mostly because of the name difference of libraries in RHEL and Debian family.

to extract files from a RPM package, rpm2cpio is the tool to use.

$ sudo apt-get install rpm2cpio
$ rpm2cpio /path/to/file.rpm | cpio -i --make-directories

alternatively, some users confirmed file-roller can open rpm files