rahulchandrak
May 10th, 2010, 05:36 AM
Hi All, today I experienced an weird functioning of rpm on ubuntu. In general, to install any software on ubuntu9.10 we use "apt-get" command,but, the problem with it is that it will install the latest version of that sofware present in the repository. For installing the older versions of the particular software, "apt-get" is not useful. Today I wanted to install the java 1.4 version on my box. I downloaded the rpm.bin file from the oracle Sun site. let us assume that the name of the downloaded file is java1.4.rpm.bin . To convert the file into an rpm format I gave the following command
./java1.4.rpm.bin
This command showed a list of terms and conditions and after accepting, it generated the rpm file java1.4.rpm. Then I gave the command
rpm -ivh java1.4.rpm
After executing this command, I expected java to be installed but it gave me an error like "rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details."
When I do the following steps same-to-same on redhat and when I gave the command
./java1.4.rpm.bin, java got installed automatically and environmental variable was created. I do not know why ubuntu is not supporting the rpm packages. If we want to use "apt-get" then we have to see the alternative way of installing the older versions of any software.
./java1.4.rpm.bin
This command showed a list of terms and conditions and after accepting, it generated the rpm file java1.4.rpm. Then I gave the command
rpm -ivh java1.4.rpm
After executing this command, I expected java to be installed but it gave me an error like "rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details."
When I do the following steps same-to-same on redhat and when I gave the command
./java1.4.rpm.bin, java got installed automatically and environmental variable was created. I do not know why ubuntu is not supporting the rpm packages. If we want to use "apt-get" then we have to see the alternative way of installing the older versions of any software.