![]() |
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 |
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 gdalCode:
gdal-1.3.1-2.i386 |
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?
|
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 |
Thank you again!
|
Code:
yum search <package> |
my yum on fc5 is acting kinda weird:
Code:
yum install <package>i have to go to /var/yum/cache and manually rpm -Uvh package which traps me in dependancy hell. |
Obvious I know, but you are actually typing y and hitting enter, are you?
|
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 |
Does it give any error message or does it just exit gracefully?
|
no error messages.
very weird? |
yum downloading but not installing
anybody know why it wouldn't install packages even if i'm root?
|
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
|
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?
|
| All times are GMT -5. The time now is 10:17 PM. |