LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2004, 05:42 PM   #1
artimus3
LQ Newbie
 
Registered: May 2004
Location: Central Illinois, the land of boredom
Distribution: FEDORA CORE 2
Posts: 3

Rep: Reputation: 0
No program association to .rpm in Fedora Core 2


I am a very new linux user, let me say that first... Second, I have some rpm's that I want to install into my linux system. I am running Fedora Core 2, (final version by the way, and all updates installed and windows xp dual booted, if that makes a difference). I am running these on an IBM Thinkpad with a 1.8ghz processor, 256 mgs of ram. I used Partition Magic 7 to change the partition to make room for linux. Ok, now that we have the basics out of the way, I have a problem.

Whenever I click on any .rpm file, I get an error message that says no program association to .rpm choose what program to use to open the file.

What program should this be? From what I understand, and that is limited mind you, an .rpm file is like a setup excutable. There is not really a program that is used to open it. So, if anyone out there has any idea, please let me know. I have done my research and it seems that this is a common error. Is there a fix for it?

Thanks.
chrismiller@softhome.net
 
Old 05-24-2004, 06:03 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
rpm is the extension for files used with redhat package manager - also called rpm.

Open a terminal and (as root) type:
Code:
rpm -i packagename.rpm
to install a package (assuming you're in the same directory as the package).

Personally I think packages are the scourge of the universe, best avoided. Once you've failed to install this particular package because of numerous failed dependencies download the source code instead and follow the instructions in the INSTALL file included with it. It's much much easier.
 
Old 05-24-2004, 06:52 PM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
And much much more reliable and it will save you from pulling your hair out. It looks scary and sounds scary to compile the program from source, but it actually is not. The way things go:

unpack the file

tar -zxvf filename (for files ending with .tar.gz)
tar -jxvf filename (for files ending with .tar.bz2)

see what happened with the ls -la command.

go to any newly created directory:

cd newly_created_directory (they are usualy in blue color by default unless you change something)

ls -la (again to see what is in there)

emacs README (or INSTALL, depending on which files come with the installation.)

From there on, there are ussually only three easy steps (which you can combine into one):

./configure; make; make install; make clean

Ecplanation:
configure configures the source make file for your system.
make and make install --> make and install the files
make clean --> cleans the files needed for installation only.

So to sumarize:

unpack (tar)
configure
install (make, make install)
clean up (make clean)

However you should read the README or INSTALL file that comes along every source package to see if these commands differ somehow. But basically this is it.
 
Old 05-27-2004, 05:12 PM   #4
bkbreyme
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
If you really need a GUI tool for RPM's, it would be the Archive Manager (also known as the File Roller)

It should be under System Tools. If you want it to run automatically, then type file-roller into the "program to run" area in the "Add file type" window. When the application is double-clicked on, the file roller should then automatically open with the RPM selected in the window.
 
Old 08-26-2005, 11:55 PM   #5
Mustang33
LQ Newbie
 
Registered: Aug 2004
Distribution: Fedora Core
Posts: 2

Rep: Reputation: 0
Simple Way

The easy way to install an RPM in Fedora:

1 - Open a terminal window (right click an open space on the desktop and left click Open Terminal)

2 - Change the the directory where the .rpm file is located. If it is in /temp then type: cd /temp

3 - Type: rpm -Uvh filename_of_the_package.rpm

That is it.

Details: rpm is the name of the program used to install the package.
-Uvh -U is for Update, -v is for verbose & -h is for hash. These all sound optional but you really need them to install the package.

Tip: A lot of the time RPMs have a very long name and since Linux is case sensitive you need to type it exact so an easy way to do this is once you have changed into the directory in the terminal issue the ls command to list all the files in the directory and then highlight the text of the RPM you want to install and then right click and copy. Then type your rpm -Uvh then right click after with your mouse and you can paste the file name into the command line. I know it sounds lame but it is better than typing AdobeReader_enu-7.0.1-1.i386.rpm to install Adobe Acrobat Reader.
 
  


Reply


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
Where you can find mplayer rpm for Fedora core 4 TruongAn Linux - Software 8 09-14-2005 10:05 AM
How to compile a C program in Fedora Core 4 SeniorSE Programming 3 09-13-2005 09:20 PM
Fedora Core-4 RPM Error morningkiran Fedora 2 06-25-2005 03:18 PM
Jahshaka RPM for Fedora Core 3? sausagejohnson Linux - Software 0 05-23-2005 08:07 AM
Fedora Core 2 BitTornado rpm install? FuriousGibbon Fedora 1 08-08-2004 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration