I am going to show you how to install .rpm package in ubuntu. First of all you have to install “alian” package then using alian convert it into .deb package. Later you can install the .deb package using “dpkg”. package manager.
First of all we need to install a package “alien”. It will help you to convert the rmp package to deb package.
Step-1: Install “alien” package in ubuntu
1 2 3 | $ sudo apt-get install alien |
Once installation is finished, you can use alien command to convert the rmp package.
Step-2: Convert .rpm to .deb package
1 2 3 | $ sudo alien -d jdk-7u21-linux-x64.rpm |
Now, you can install deb package using standred dpkg command
Step-3: Install .deb package
1 2 3 | $ sudo dpkg -i jdk_1.7.021-1_amd64.deb |