YUM (Yellow Update Server Configuration)
It helps in installing packages , yes, we can install using rpm command, but draw back is dependencies , through yum it finds its dependencies and install.
Configuration of Yum server
requirements for yum server
1)ISO file
2) vsftpd / http central place to store iso
3) Create repo rpm
step 1) mount dvd iso file
step 2) change to directory of packages
[root@localhost CentOS_6.7_Final]# cd Packages/
[root@localhost Packages]# pwd
/media/CentOS_6.7_Final/Packages
step 3) for vsftp follow vsftp link http://sslinuxsolutions.blogspot.in/p/very-secure-file-transfer-protocol-vsftp.html
mkdir -p /var/ftp/pub/RHEL6
[root@localhost pub]# cp -R /media/RHEL_6.1\ i386\ Disc\ 1/* /var/ftp/pub/RHEL6/
[root@localhost pub]# chown -R ftp:ftp /var/ftp/pub/RHEL6/
[root@localhost pub]#
step 4) [root@localhost Packages]# ls | grep create
createrepo-0.9.9-22.el6.noarch.rpm
[root@localhost Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
deltarpm is needed by createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch
[root@localhost Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:deltarpm ########################################### [100%]
[root@localhost Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:python-deltarpm ########################################### [100%]
[root@localhost Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:createrepo ########################################### [100%]
[root@localhost Packages]#
Configuration of Yum server
requirements for yum server
1)ISO file
2) vsftpd / http central place to store iso
3) Create repo rpm
step 1) mount dvd iso file
step 2) change to directory of packages
[root@localhost CentOS_6.7_Final]# cd Packages/
[root@localhost Packages]# pwd
/media/CentOS_6.7_Final/Packages
step 3) for vsftp follow vsftp link http://sslinuxsolutions.blogspot.in/p/very-secure-file-transfer-protocol-vsftp.html
mkdir -p /var/ftp/pub/RHEL6
[root@localhost pub]# cp -R /media/RHEL_6.1\ i386\ Disc\ 1/* /var/ftp/pub/RHEL6/
[root@localhost pub]# chown -R ftp:ftp /var/ftp/pub/RHEL6/
[root@localhost pub]#
umount iso
step 4) [root@localhost Packages]# ls | grep create
createrepo-0.9.9-22.el6.noarch.rpm
[root@localhost Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
deltarpm is needed by createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch
[root@localhost Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:deltarpm ########################################### [100%]
[root@localhost Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:python-deltarpm ########################################### [100%]
[root@localhost Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:createrepo ########################################### [100%]
[root@localhost Packages]#
step 5) create repo file at
[root@localhost Desktop]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
redhat.repo rhel-source.repo sabitha.repo
[root@localhost yum.repos.d]#
specify static ip
[root@localhost yum.repos.d]# cat sabitha.repo
[sabitha]
name=sabitha
baseurl=ftp://xxxx/pub/RHEL6
enable=1
gpgcheck=0
[root@localhost yum.repos.d]#
test yum repolist
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
sabitha | 4.0 kB 00:00
sabitha/primary_db | 2.4 MB 00:00
repo id repo name status
sabitha sabitha 2,719
repolist: 2,719
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
sabitha | 4.0 kB 00:00
sabitha/primary_db | 2.4 MB 00:00
repo id repo name status
sabitha sabitha 2,719
repolist: 2,719
[root@localhost yum.repos.d]#
No comments:
Post a Comment