For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > yum repositories

yum repositories

Created by dave. Last edited by dave, 11 years and 161 days ago. Viewed 3,022 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
yum.conf (1627)

Sample Yum.conf file

This /etc/yum.conf is for FC2, and includes the Livna and JPackage repositories, in addition to the fedora.us repository.

You must also import the relevant GPG keys:

Useful for legacy systems (and some modern Mandrake ones), this list of yum archives at USC: >>http://mirrors.usc.edu/pub/yum-repository/confs/

Also usefull: turning off extraneous noise in yum.conf:

[main]
debuglevel=0
errorlevel=0
Unfortunately, doing so can lead to some terse exchanges with Yum:
[root@jupiter log]# yum install nmap
Is this ok [y/N]:
...this makes me wonder exactly what it is going to do here; therefore asking for permission is a bit odd.

Createrepo

If you are maintaining a repository:

# cd $root/CentOS-4.2-i386
# ls
os  updates
In this case, os is the root of the CDROM/DVD image dump, and updates are the local RPMs to add or update. Since os will never change, we add our new RPMs to update and then:
# createrepo $root/CentOS-4.2-i386/update
Then make sure your clients can get at the system with /etc/yum.repos.d/myupdates.repo or the like:
[my-updates]
name = my updates
baseurl = >>http://$LOCATION/CentOS-4.2-i386/updates

Now you should be able to do a yum update or yum install $PACKAGE and your repository will be included in the operation.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt