YUM (Yellow Dog Update Modifier )
------------------------------------------
* YUM - It is a 'xml' file. It resolve the dependency,it is front end of '.rpm'
(FROM SERVER END)
...........................................
step 1. [Copy the DVD of RHEL-6 in to the '/var/ftp/pub'
#mount /dev/cdrw /mnt [ mount first the DVD in to the '/mnt ]
#cd /mnt
#cp -av -R * /var/ftp/pub [where '*' is whole dir 'Package' ]
step 2. #vi /etc/yum.repose.d/server.repo
[ where 'server.repo' is the name of your yum server that can be any thing "file.repo"]
[server]
name = server
baseurl = file:///var/ftp/pub/Package
gpgcheck = 0
enabled = 1
:wq [ after this configuration save the file and exit]
step 3. Install the package of 'creatrepo'
#cd /var/ftp/pub/Package
#rpm -ivh creatrepo_pres tab
step 4. #cd ..
#cd ..
#creatrepo pub (/packages)
step 5. #yum clean all
#yum list all
step 6. #yum install package name
Ex. - yum install vsftpd
FROM CLIENT END
.........................
step 7. #vim /etc/yum.repos.d/server.repo
[server]
name = server
baseurl = ftp://192.168.0.1/pub/Packages
gpgcheck = 0
enabled = 1
:wq [ save the file and quit ]
#yum list all
#ping -s 256 192.168.0.1
-----------------------------------------------------------------------------------------------------
No comments:
Post a Comment