February 12, 2010

Converting .rpm Package To .deb

Alien is a program that converts between different file formats. If you want to use a package from another distribution, you can use alien to convert it to your preferred package format and install it.

Alien can be used to convert a .rpm package to .deb. If you have downloaded a .rpm package instead of a .deb, you need not refetch the correct package. You can do the following:

Install Alien

1. Download from here.

2. You can also install via command line.

varsha@varsha-laptop:~$ sudo apt-get install alien

Convert .rpm Package To .deb

1. Convert the package to .deb using the alien command.

varsha@varsha-laptop:~$ alien package_name.rpm

This takes the latest version of the package.

If you want the current version,

varsha@varsha-laptop:~$ alien -k package_name.rpm

2. To install the package, use dpkg command.

varsha@varsha-laptop:~$ dpkg -i package_name.deb

You can also use the alien command to directly install the package after converting.

varsha@varsha-laptop:~$ alien -i package_name.rpm

Note: See the manual for details on how to use the command.

varsha@varsha-laptop:~$ man alien