2

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?

Randall
  • 356

2 Answers2

3

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

0

You can use alien to just extract the files, without building the rpm; I would expect that to work without throwing errors:

alien --scripts --generate <package.rpm>

You'll get 2 dirs:

  1. a <package> dir, which it would it would use to build the .deb
  2. a <package>.orig dir that is the direct extraction from the .rpm
Randall
  • 356