LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-13-2006, 04:08 AM   #1
thammerlund
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Rep: Reputation: 15
Yum and Fedora 5


I'm in the process of learning how to use Fedora 5, and I'm using yum to install my files. However, yum installs them without telling me where they are, so is there a way to have the installation path displayed, a flag or switch or something?

Also, when I run the yum command, such as:

yum install gdal

or

yum install gdal-1.3.1-2.i386.rpm

it will run through it, and then say "There is nothing to do." Does that mean that the file (in this case gdal) is already installed on my machine and doesn't need to be updated/installed? I try to find where it is using the locate command, but it doesn't say anything. Does anyone have any tips/advice/ideas?

Thank you,
Tom
 
Old 07-13-2006, 04:20 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
You can't get yum to tell you the path to the file, but you can work it out with a little bit of effort. First of all, when you 'yum install' a package, note which repository it comes from (the right-most column) when it prompts you 'Is this ok [y/n]?'

Then go to the directory /etc/yum.repos.d/. In one of the files in this directory, there will be a definition for that repository name which will list either the URL for the repository, or a number of mirror URLs for that repository. Follow the path (substituting in i386 for $arch and things like that) and you should find the path.

"There is nothing to do" generally means it can't find the package you want to install. It will generally say something like "xxx is already installed" if it's already installed, but you can manually check. For example, to see if the package you mention gdal is already installed, issue the following command:

Code:
rpm -q gdal
If it is installed, it will come back and say something like:

Code:
gdal-1.3.1-2.i386
Otherwise, it won't.
 
Old 07-13-2006, 04:28 AM   #3
thammerlund
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you very much for your help. You were right, I did have the filename wrong when I used yum. But the same thing happens with apache. I tried yum install apache, and it said nothing to do. I know apache is already installed, but I also read somewhere else that "yum install apache" was the proper way to get apache. Have you seen that?
 
Old 07-13-2006, 04:44 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
If you try to yum install something that is already installed, it won't do anything - unless of course it can find a more up-to-date version available online, in which case it'll prompt you to download the update.

The name that yum requires is the name of the package - if indeed it is called apache (which I think it is), and you can check this with
Code:
rpm -q apache
If it doesn't do anything that's because it can't find any updates.
 
Old 07-13-2006, 05:12 AM   #5
thammerlund
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you again!
 
Old 07-13-2006, 06:24 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Code:
yum search <package>
also find matches for that package, and it'll show if it's installed or not, rpm-q is quicker though. Primary use of yum search is to query the repos (something to bear in mind if you cant find exact package)
 
Old 07-13-2006, 12:44 PM   #7
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
my yum on fc5 is acting kinda weird:

Code:
 yum install <package>
will download the package and dependacies to /var/yum/cache and ask me 'Is this ok [y/n]?' but it won't install.

i have to go to /var/yum/cache and manually rpm -Uvh package which traps me in dependancy hell.
 
Old 07-13-2006, 04:27 PM   #8
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Obvious I know, but you are actually typing y and hitting enter, are you?
 
Old 07-13-2006, 11:45 PM   #9
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
i'm not sure, the power is out and its hard to see if the computer is plugged in.

just kidding, yes i am hitting 'y' when prompted
 
Old 07-14-2006, 04:01 AM   #10
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Does it give any error message or does it just exit gracefully?
 
Old 07-14-2006, 12:30 PM   #11
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
no error messages.

very weird?
 
Old 07-17-2006, 04:15 PM   #12
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
yum downloading but not installing

anybody know why it wouldn't install packages even if i'm root?
 
Old 07-17-2006, 05:27 PM   #13
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
A bity late in the piece, but on my fc5 box, apache is called httpd - hence yum install httpd rather than yum install apache should work
 
Old 07-18-2006, 12:58 AM   #14
thammerlund
LQ Newbie
 
Registered: Jul 2006
Posts: 22

Original Poster
Rep: Reputation: 15
How can you see what the programs are called in the repository? in other words, how did you see that apache is called "httpd" on your system?
 
  


Reply

Tags
fc5, yum


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
Does yum update from Fedora 3 to Fedora 4? Feenix566 Linux - Newbie 1 12-02-2005 11:52 AM
Getting YUM setup (Fedora v3) JoelK04 Linux - Newbie 7 03-01-2005 11:19 PM
Fedora Core 3 Yum help chaos_4_4 Fedora 2 11-10-2004 06:18 PM
problems with yum (fedora 1) sohmc Fedora 4 09-14-2004 11:13 PM
New to Fedora Core and yum... wallison Fedora 3 05-19-2004 08:37 PM


All times are GMT -5. The time now is 11:43 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