glugt-mgl

 

Configuration of Repos

Page history last edited by sp2hari 2 yrs ago

 Configuring a YUM Server  TODO

 

 Configuring a YUM Client

 

1. You should have yum installed. 99.99% chances are that you will have yum already installed in your computer.

 

Step 0

 You can check whether you have yum installed by

root@home:~# yum -h

If the above command prints the yum help , then yum is installed. If it shows command not found, then you need to install yum :-(.

 

Step 1

If your computer is not connected to internet, then you have to delete the folder /etc/yum/repos.d. I generally take a back up, so that i might use them later, if needed

 

root@home :~$ mv /etc/yum/repos.d /root

Then check out where yum repos have been hosted in your network. It could be in someone's ftp, web or even in your own computer.

 

Step 2

You need to modify your /etc/yum.conf file to get yum working. Open /etc/yum.conf in your favourite editor and the file will look like this

[main]
cachedir=/var/cache/yum
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
[base]
name=Fedora Core $releasever - $basearch - baseurl=http://download.fedora.us/fedora/redhat/9/i386/yum/stable/
gpgcheck=1
The contents of the file may not be the same as shown above, but you will see two sections [main] and [base].
Delete all the contents of the base so that the yum.conf file looks similar to
[main]
cachedir=/var/cache/yum
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
[base]

Now add repositories from the local network. An example repository will look like

[fedora-updates-9]

name=Main Repo of Garnet (Sahil)

baseurl=http://10.1.60.1/fc6/

gpgcheck=0

enabled=1

 

Points to note ::

1. Make sure you have gpgcheck=0 and enabled=1. If not this repository won't work.
2. The baseurl can be ftp, http or file or media.
Eg. http://10.1.60.1/fc6.
ftp://10.1.60.1/fc6/
file:///home/hari/fc6/
Step 3
After this run a "yum update"
root@home:~# yum update

The above command should show an output like

Setting up repositories

updates_local 100% |=========================| 951 B 00:00

addons_local 100% |=========================| 951 B 00:00

Reading repository metadata in from local files

 

If not, then check your yum.conf again.

Then after that things are quite easy. Install yumex by running "yum install yumex"

Step 4
root@home:~# yum install yumex

The yumex will make life still easier by making linux installation just a matter of few clicks.

 

 

## I don't have a FC. or F7 in my box here at home. So i am not quite sure about the output and the conf file of the commands i mentioned above ;-). It will be better if some one checks them or even edits this file by replacing the actual output of the commands i mentioned above .

 

 

## TODO :: I really screwed up the formatting. :P I think suren should think of a standard formatting , font size for the commands, output and normal text .

Comments (0)

You don't have permission to comment on this page.