How to configure linux yum server
step by step guide Example and
Implementation
YUM stands for Yellow dog Updater, Modified because it is based on YUP, the Yellow dog
Updater. Yellow Dog is a version of Linux for the Power Architecture hardware. YUP, and later
YUM, were written by the Linux community as a way to maintain an RPM-based system.
Advantages of YUM
Automatic resolution of software dependencies. If a package installation or upgrade
request is made and requires the installation or upgrade of additional packages, YUM can list
these dependencies and prompt the user to install or upgrade them.
Command-line and graphical versions. The command-line version can be run on a
system with a minimal number of software packages. The graphical versions offer ease-of-use and
a user-friendly graphical interface to software management.
Multiple software locations at one time. YUM can be configured to look for software
packages in more than one location at a time.
Ability to specify particular software versions or architectures. Software
locations accessible by YUM can contain multiple versions of the same RPM package and different
builds for different architectures such as one for i686 and one for x86_64. yum can easily check
the appropriate version and download it.
While it's unlikely that you'll have an Internet connection during the exam, you could have
a network connection to a local repository. So you should be ready to use the yum
command during the Red Hat exam.
How to create dump of RHEL CD
Whether you perform network installation or create yum repository file you need dump of RHEL
CD. It is generally created on server in RHCE exam. Candidate is given a location of this dump to
perform network installation. We will create dump of RHEL CD on /var/ftp/pub and use this for
network installation or to create yum repository files.
Check how many space is available on /var partition mimimun 4 GB space is required
Now
Dump
mount
is
RHEL
created
dvd
on
on
mnt
and
/var/ftp/pub
copy
now
entire
you
Configure yum server
can
disk
on
umount
/var/ftp/pub
RHEL
dvd
RHCE
EXAM
QUESTION
Backup of the Redhat Enterprise Linux 5 is taken in /var/ftp/pub on server named
Server.example.com. You can install all required packages using yum by creating the
repository file.
Pre quest of yum server
we assume that you have completed these pre quest of yum server
A Linux system with hostname Server.example.com and with ip address of
192.168.0.254
Dump of RHEL disk on /var/ftp/pub location
Once you have completed these pre quests follow this guide.
change
yum
directory
and
createrepo
Now
After
rpm
to
are
required
install
installing
Now
repository
of
package
repository
all
yum
server
createrepo
necessary
create
for
/var/ftp/pub/Server
rpm
will
change
of
be
install
them
rpm
directory
Server
created
in
to
/var/ftp/pub
directory
few
minute
Now
In
create
few
Now
second
create
all
errata
repository
necessary
for
repository
directory
and
will
VT
be
repository
created
for
for
it
VT
During the process of creating repository two hidden directory with named .olddata is
created
automatically
remove
them
Now check hostname and change directory to /etc/yum.repos.d. copy sample
repository
file
to
the
file
with
hostname
And
open
it
Default
repository
file
look
like
these
Remove defaults line and set new location of Sever and VT as shown here
Save file with :wq and exit
Now remove all temporary
To
After
Now
data
file
with
yum
clean
all
Congratulation You have successful create yum server
yum
server
remove
telnet
test
checking
install
all
dependences
telnet
it
will
package
ask
for
package
conformation
from
command
yum
press
server
After
checking
all
dependences
it
will
ask
for
conformation
press