Yum is a yellow dog update manager it is a new package manager introduced by redhat with RHEL5 in year 2007 but now in RHEL6 they also have this facility to manage the packages. By using YUM we can manage the packages in many ways. YUM is always working in Server/Client.
Features of yum over rpm.
- Multiple Repositories
- Simple config file
- Correct dependency calculation and fast operation
- rpm consistent behavior
- Simple interface
# install the package
yum install packagename
# delete the old and install the new package
yum update packagename
# erase/delete the package
yum erase packagename
# remove the package
yum remove packagename
Yum Server in RHEL 6
Using FTP method
Go to RHEL6 - settings - Hardware - add - cd/dvd - use physical drive/use ISO image - finish
# if not mount reboot the machine
mount -a
cd /media/RHEL 6.0\ i386\ Disc\ 1/
# make sure that all rpm are available
cd Packages
# make sure ftp server is running
rpm -ivh vsftpd*
rpm -ivh *ftp*
rpm -ivh createrepo.rpm
rpm -ivh deltarpm*
rpm -ivh python*
Copy all DVD content in one location /var/ftp/pub/rhel6
# rpm collection location
cd /var/ftp/pub/rhel6
# creating repository
createrepo .
# make an entry in server side
vim /etc/yum.repos.d/server.repo
[rhel6]
name=rhel6
baseurl=file:///var/ftp/pub/rhel6
# to enable yum server
enabled=1
# for group policy check
gpgcheck=0
# make an entry in client side
vim /etc/yum.repos.d/server.repo
[rhel6]
name=rhel6
baseurl=ftp://192.168.0.253/pub/rhel6
enabled=1
gpgcheck=0
yum install gcc (client side example)
No comments:
Post a Comment