LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-09-2010, 11:06 PM   #1
rahulchandrak
Member
 
Registered: Apr 2010
Posts: 33

Rep: Reputation: 2
rpm malfunction on ubuntu


Hi All, today I experienced an weird functioning of rpm on ubuntu. In general, to install any software on ubuntu 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.
 
Old 05-09-2010, 11:36 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
It shouldn't be surprising that it worked on redhat, as RPM originally stood for "Redhat Package Manager". Debian uses .deb style packages. There is a utility called alien that can install .rpm packages. Use apt-get to install alien, and use alien to install the .rpm on your Debian system. Or compile it from source. Best bet: see if the oracle Sun site has a .deb package available for download.

Last edited by brucehinrichs; 05-09-2010 at 11:37 PM.
 
Old 05-09-2010, 11:37 PM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
RPM is "Redhat Package Management" I believe and is only natively supported in Linux OSs based on Redhat such as Mandriva, Suse, Fedora, etc. Ubuntu is based on Debian which natively uses .deb files. To install the rpm on your system do the following.

1) Install alien
Code:
sudo apt-get install alien
2) Install the rpm with alien
Code:
sudo alien java1.4.rpm
If it doesn't work try downloading the version that is not in rpm format and just stick it in a folder of your choosing and put symbolic links to everything in the bin folder after it's been extracted in a folder that's in your $PATH.
 
  


Reply

Tags
rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
intelfb malfunction radii Linux - Laptop and Netbook 0 06-22-2008 04:28 PM
Kmix malfunction j9678 Linux - Newbie 11 01-31-2008 01:00 PM
Partitioning Malfunction- Cant't boot into ubuntu partition Haloony Linux - Newbie 14 03-19-2007 10:52 PM
Mplayer malfunction Diminished7th Linux - Software 3 02-04-2006 11:57 PM
keyboard malfunction? maybe patolfo Linux - Hardware 4 01-17-2006 12:08 PM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration