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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-13-2006, 03:08 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2006
Posts: 22
Rep:
|
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
|
|
|
|
07-13-2006, 03:20 AM
|
#2
|
|
Member
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513
Rep:
|
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:
If it is installed, it will come back and say something like:
Otherwise, it won't.
|
|
|
|
07-13-2006, 03:28 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2006
Posts: 22
Original Poster
Rep:
|
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?
|
|
|
|
07-13-2006, 03:44 AM
|
#4
|
|
Member
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513
Rep:
|
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 If it doesn't do anything that's because it can't find any updates.
|
|
|
|
07-13-2006, 04:12 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2006
Posts: 22
Original Poster
Rep:
|
Thank you again!
|
|
|
|
07-13-2006, 05:24 AM
|
#6
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
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)
|
|
|
|
07-13-2006, 11:44 AM
|
#7
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,733
|
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.
|
|
|
|
07-13-2006, 03:27 PM
|
#8
|
|
Member
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513
Rep:
|
Obvious I know, but you are actually typing y and hitting enter, are you?
|
|
|
|
07-13-2006, 10:45 PM
|
#9
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,733
|
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
|
|
|
|
07-14-2006, 03:01 AM
|
#10
|
|
Member
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513
Rep:
|
Does it give any error message or does it just exit gracefully?
|
|
|
|
07-14-2006, 11:30 AM
|
#11
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,733
|
no error messages.
very weird?
|
|
|
|
07-17-2006, 03:15 PM
|
#12
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,733
|
yum downloading but not installing
anybody know why it wouldn't install packages even if i'm root?
|
|
|
|
07-17-2006, 04:27 PM
|
#13
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
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
|
|
|
|
07-17-2006, 11:58 PM
|
#14
|
|
LQ Newbie
Registered: Jul 2006
Posts: 22
Original Poster
Rep:
|
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:56 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|