Setting up YUM for FC4
From FedoraNEWS.ORG
Written by Tejas Dinkar on 2005-06-22
| Table of contents |
What is YUM?
Yellow dog Updater, Modified (http://linux.duke.edu/projects/yum/), or YUM, is a program which allow users to easily update and add/remove packages on their computer. It is a front end for the RedHat Package Manager (http://www.rpm.org).
What is a .rpm file?
A .rpm file is a file that can be installed using the RedHat Package Manager (http://www.rpm.org). Each .rpm file has two parts.
The first part is the data stored in the .rpm, ie, the various files in the .rpm and their contents.
The second part of the .rpm is the header. The header contains information of the list of dependencies (the prerequisite programs to be installed) a .rpm file has, and a list of provides (what this .rpm file can give)
What is a repository?
A repository (repo) is a database of .rpms and headers. When yum attempts to install or update a program, it will search all of the repositories that it knows for the program, as well as the dependencies of that program, and will install them all together. The list of repositories can be found in /etc/yum.conf and /etc/yum.repos.d/<repo_name>.repo
Can yum use more than one repository?
Yes, yum can use as many repositories as you configure it to use. However, there are certain repositories that cannot be used together, as they cause clashes. A good example of this, is the livna repository, which is incompatible with all other repositories.
What is a GPG Key?
A GPG key is the 'signature' of each repository. It is a text file that is usually imported via rpm, so that all .rpms downloaded from that repo can be verified.
How do I set yum to use a repository?
Usually, this would have involved editing the yum.conf to include the repositories, and then importing the GPG key for each of the repositories.
However, the attached script will make things easier for you, as it will automatically set up the repositories in the folder /etc/yum.repos.d/, and it will auto import the GPG keys for you, if you have not yet imported it.
How do I use this script?
- Download the script (http://fedoranews.org/wiki-uploads/tejas_dinkar/yumfix) (right click and save link as)
- Open a console and become root, by typing in su, followed by your password
- Navigate to the folder where the script is
- Make the script executable by typing in chmod +x yumfix
- Run the script by typing in ./yumfix
- Select the repositories you want to install
Which repos are in this script?
Currently, this script manages the repositories: livna, freshRPMS, ATRPMS, and dag
After I install livna, the script stops. What happened?
As I mentioned before, the livna repo is incompatible with other repos. Hense, once you install Livna, other repositories cannot be installed. Run the script again to uninstall livna, and install others
Can I run this script many times?
Yes. Each time you run, the repos you select will be installed and enabled, and all other repos (that this script manages) will be disabled.
Note: This does not mean that programs installed from a particular repo are removed. Also, you will not need to re import GPG keys
How would I use this script frequently?
If you would like to use this script frequently, copy it to /usr/local/bin. Then to enable the repos dag and freshrpms, you would call it as
yumfix freshrpms dag
calling it as yumfix, without any parameters, will also work.
Where can I send repositories I want added?
Send repos to me Tejas Dinkar, along with a list of any compatibility issues. You can also open the script in an editor like kedit or gedit, and add the repo yourself.
Where can I send Bugs?
Send bugs to me Tejas Dinkar
Why is the current version 2.5.6? What happened to previous versions?
Well, the first couple of versions of yumfix were full of bugs, and were number-less. The first version of yumfix with a version number is 2.5.6. And this is because 25/6 is my birthday.

