Friday, January 23, 2015

How to convert a .rpm file into a .deb file

To convert a .rpm file into a .deb file you need following packages:

 $ sudo apt-get install -y rpm alien libnuma1

Now the next step is to convert all the rpm files in the current folder into deb file format, and then install them with dpkg.  Create a shell file and write follwing lines into it.

 for f in *.rpm; do
   fakeroot alien --to-deb $f
 for f in *.deb; do
   sudo dpkg -i $f

Now, change the shell file permissions to make it executable

$ sudo chmod 777

Run the shell file to start the conversion

$ sh