Creating RPMs from Debian packages with alien

Alien converts a Debian package into a standard RPM package from source code and installs it using your distribution’s standard package management utilities. While distribution-specific packages from trustworthy repositories or compiling from source are to be preferred, alien gives you an option when the only thing available is a Debian package.

INSTALLATION
Per your distribution. For example:

  • Open Mandriva or derivatives: sudo urpmi alien
  • openSUSE: sudo zypper install alien

USAGE
To convert a Debian package to an RPM, install (not upgrade) it with rpm -ivh, and remove the package file:

sudo alien --to-rpm --keep-version --install PACKAGE_NAME.deb

If you are doing this to upgrade an existing RPM package, the above will fail at the install step. Instead, have alien create a converted RPM but do the upgrade yourself:

sudo alien --to-rpm --keep-version PACKAGE_NAME.deb
sudo rpm --upgrade --hash PACKAGE_NAME.rpm

REFERENCES
How to Convert From RPM to DEB and DEB to RPM Package Using Alien

Advertisements

About Warren Post

So far: Customer support guy, jungle guide, IT consultant, beach bum, entrepreneur, teacher, diplomat, over-enthusiastic cyclist. Tomorrow: who knows?
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

4 Responses to Creating RPMs from Debian packages with alien

  1. Pingback: Setting up Skype in Linux | Warren's tech notes

  2. Pingback: RPM package management tips | A maze of twisty little passages

  3. Pingback: Using Encrypr on RPM-based Linux distributions | A maze of twisty little passages

  4. Pingback: Notetaking and Reference Applications | A maze of twisty little passages

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s