By Sreehari Cheerla, Santosh M
Yellowdog Updater Modifier (YUM) is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.
- Multiple Repositories
- Correct dependency calculation
- Fast operation
- rpm-consistent behavior
YUM makes it easy to keep the systems in a network running with the latest patches. If your network has multiple machines that need to be updated, you may want to run a local YUM server that caches the updates.
Setting up a local YUM Repo server is a simple process and can be done quickly. You’ll need to:
- Set up the local YUM Repo server
- Set up clients to pull updates from the local YUM Repo server
Set Up The Local YUM Repo Server
Setting up the local YUM Server requires the following steps:
- Install and Configure Apache to support YUM
- Install Create Repo
- Configure the YUM Server
Install and Configure Apache to support YUM:
- Install Apache Using YAST and start the Apache service using “rcapache2 start”
- Create a symbolic link of the location which needs to be hosted or where Updates available under /srv/www/htdocs .
Eg : ln -s /Updates /srv/www/htdocs
- Configure Apache in order to support as YUM source by editing /etc/apache2/default-server.conf file. Add the following content to this file and restart Apache.
<Directory "/var/www/html"> Options None AllowOverride None Order allow,deny Allow from all </Directory> <IfDefine SSL> SSLEngine off </IfDefine>
- Restart Apache
Install Create Repo:
Install createrepo rpm by downloading from http://rpmfind.net
Configure the YUM Server:
- Copy the updates to a folder (Eg: /Updates/SLES10, /Updates/SLED10,/SLES10-SP1, /Updates/SLED10-SP1). Place all updates under similar folder structure.
- Run the below command
Eg: createrepo /Updates
This would generate required meta data.
Set Up Clients To Pull Updates From The Local YUM Repo Server
To configure a client system to pull updates from the local YUM server Using rug command follow below steps:
- Add the service using rug service add command Using “rug sa <servername> -t yum <servicename >”
rug sa http://220.127.116.11/Updates -t yum updates
- Verify the Catalogs using “rug ca” command and Subscribe the catalog using “rug sub <catalogname>”
- Now Update the software using “rug up” command .