Configuring
Local Yum Server on RHEL 5
Overview:
Yum or yellow dot update manager is the front of RPMs. It is
only design for packages dependencies. Yum can collect packages from more than
one location. To download & install RPM packages, it use a repository file,
a repository is a single collection point for all documents that relate to the
program. Generically repository refers to a central place where data is stored
and maintained. A repository can be a place where multiple databases or files
are located for distribution over the network, or a local machine. Yum first
read this file list then it can download & install the packages.
Why Yum?
Generally in every Linux platform, it is difficult to
install the packages (Software), because in Linux a single package is related
with other packages, so if you want to install any package or packages then you
need to know the other related packages/dependent packages name, but it is
tough to remember so you can install packages by using yum. By using yum you
can solve to installing all the dependent packages, this way you can remove the
dependencies problem. Yum could be use as Local server that means by
configuring yum you can install packages on local machine or can be use remote
machines on your network. You can also download and install packages from
internet by using yum.
Pre-requisites of Yum Server:
§ A Linux Client with IP address 210.207.201.x & hostname pc1
§ Configure NIC card on every machine
§ Update /etc/hosts file on both Linux system or use DNS system for name resolution.
§ A DVD-ROM with RHEL5 DVD
Necessary
configuration for Server & Client Machine
IP Configuration: Change your server & client machine IP address as like
below.
[root@localhost ~]# vi
/etc/sysconfig/network-scripts/ifcfg-eth0
#Broadcom
Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29:
EB: B2: CA
ONBOOT=yes
TYPE=Ethernet
PEERDNS=no
USERCTL=no
IPV6INIT=no
IPADDR=210.207.201.254
NETMASK=255.255.255.0
NETWORK=210.207.201.0
BROADCAST=210.207.201.255
Changing Host name: Change your server & client machine name as like below.
[root@localhost ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=yumsrv