Hi Friends,
Somedays back, we were learning and sharing yum.repo creation. did some more learning and test. we learn to make yum server also with clients. Good thing is that we are running client with HTTP. this configuration i have learnt and used first time. it is great.
1. What we should have for this :-
a. One Linux machine, where we will be creating a yum server.
b. HTTP needs to be installed with dependant files on YUM server. thats it.
c. Yes, very important is. that server and clients should be in same LAN.
c. one or more number of clients with the same type of client configuration in /etc/yum.repos.d/yum.repo
above yum.repo is the file name given by us.
thats it, after this, we can run yum clean all and yum update all from the # prompt or using sudo or root privilege.
YUM SERVER Side configuration given below
for basic yum.repo config please follow below link.
After this when you have installed http packages. then you will be able to see below mentioned directory.
#cd /var/www/html/
#
If you are able to see below directory, now create another directory name as per your ease inside this directory.
like in my case i created directory named as Server in 5.8 RHEL.
[root@amit Server]# pwd
/var/www/html/Server
[root@amit Server]#
Below is my yum.repo in my server's /etc/yum.repos.d/ directory
After this, DVD is mounted on /var/www/html/Server/
using
#mount /dev/dvd /var/www/html/Server
#
as it is done, now edit yum.repo as below. This server IP is 1.2.3.5 i.e. YUM SERVER
[root@amit Server]# cat /etc/yum.repos.d/yum.repo
[Installer]
name=Installer
baseurl=file:///var/www/html/Server/Server
gpgcheck=0
enabled=1
[Amit]
name=Amit
baseurl=file:///var/www/html/Server/Cluster
gpgcheck=0
enabled=1
[Manager]
name=Manager
baseurl=file:///var/www/html/Server/ClusterStorage
gpgcheck=0
enabled=1
[Work]
name=Work
baseurl=file:///var/www/html/Server/VT
gpgcheck=0
enabled=1
[root@amit Server]#
after this restart the services of HTTPD using
#/etc/init.d/httpd restart
once done, you can chech configuration of your yum file also using
#yum clean all
#yum update all
Now the YUM CLIENT configuration is below :-
only edit /etc/yum.repos.d/yum.repo file
#cat /etc/yum.repos.d/yum.repo
####1.2.3.5 is YUM SERVER####
[Installer]
name=Installer
baseurl=http://1.2.3.5/Server/Server
gpgcheck=0
enabled=1
[Amit]
name=Amit
baseurl=http://1.2.3.5/Server/Cluster
gpgcheck=0
enabled=1
[Manager]
name=Manager
baseurl=http://1.2.3.5/Server/ClusterStorage
gpgcheck=0
enabled=1
[Work]
name=Work
baseurl=http://1.2.3.5/Server/VT
gpgcheck=0
enabled=1
Thats It, use below commands now on client side.
#yum clean all
#yum update all
Now if every thing goeas well. now you can use :-
#yum install "name of the packgae " -y
it will install the package, taking a small example below of my client side installation.
[root@ ~]# yum install *gdm* -y
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package 1:gdm-2.16.0-59.el5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gdm-docs.x86_64 1:2.16.0-59.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
gdm-docs x86_64 1:2.16.0-59.el5 Installer 122 k
Transaction Summary
=============================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 122 k
Downloading Packages:
gdm-docs-2.16.0-59.el5.x86_64.rpm | 122 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gdm-docs 1/1
Installed products updated.
Installed:
gdm-docs.x86_64 1:2.16.0-59.el5
Complete!
[root@swati ~]#
##############
Done. Thanks a lot for the visit.
Love sharing
Amit Chopra
Somedays back, we were learning and sharing yum.repo creation. did some more learning and test. we learn to make yum server also with clients. Good thing is that we are running client with HTTP. this configuration i have learnt and used first time. it is great.
1. What we should have for this :-
a. One Linux machine, where we will be creating a yum server.
b. HTTP needs to be installed with dependant files on YUM server. thats it.
c. Yes, very important is. that server and clients should be in same LAN.
c. one or more number of clients with the same type of client configuration in /etc/yum.repos.d/yum.repo
above yum.repo is the file name given by us.
thats it, after this, we can run yum clean all and yum update all from the # prompt or using sudo or root privilege.
YUM SERVER Side configuration given below
for basic yum.repo config please follow below link.
After this when you have installed http packages. then you will be able to see below mentioned directory.
#cd /var/www/html/
#
If you are able to see below directory, now create another directory name as per your ease inside this directory.
like in my case i created directory named as Server in 5.8 RHEL.
[root@amit Server]# pwd
/var/www/html/Server
[root@amit Server]#
Below is my yum.repo in my server's /etc/yum.repos.d/ directory
After this, DVD is mounted on /var/www/html/Server/
using
#mount /dev/dvd /var/www/html/Server
#
as it is done, now edit yum.repo as below. This server IP is 1.2.3.5 i.e. YUM SERVER
[root@amit Server]# cat /etc/yum.repos.d/yum.repo
[Installer]
name=Installer
baseurl=file:///var/www/html/Server/Server
gpgcheck=0
enabled=1
[Amit]
name=Amit
baseurl=file:///var/www/html/Server/Cluster
gpgcheck=0
enabled=1
[Manager]
name=Manager
baseurl=file:///var/www/html/Server/ClusterStorage
gpgcheck=0
enabled=1
[Work]
name=Work
baseurl=file:///var/www/html/Server/VT
gpgcheck=0
enabled=1
[root@amit Server]#
after this restart the services of HTTPD using
#/etc/init.d/httpd restart
once done, you can chech configuration of your yum file also using
#yum clean all
#yum update all
Now the YUM CLIENT configuration is below :-
only edit /etc/yum.repos.d/yum.repo file
#cat /etc/yum.repos.d/yum.repo
####1.2.3.5 is YUM SERVER####
[Installer]
name=Installer
baseurl=http://1.2.3.5/Server/Server
gpgcheck=0
enabled=1
[Amit]
name=Amit
baseurl=http://1.2.3.5/Server/Cluster
gpgcheck=0
enabled=1
[Manager]
name=Manager
baseurl=http://1.2.3.5/Server/ClusterStorage
gpgcheck=0
enabled=1
[Work]
name=Work
baseurl=http://1.2.3.5/Server/VT
gpgcheck=0
enabled=1
Thats It, use below commands now on client side.
#yum clean all
#yum update all
Now if every thing goeas well. now you can use :-
#yum install "name of the packgae " -y
it will install the package, taking a small example below of my client side installation.
[root@ ~]# yum install *gdm* -y
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package 1:gdm-2.16.0-59.el5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gdm-docs.x86_64 1:2.16.0-59.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
gdm-docs x86_64 1:2.16.0-59.el5 Installer 122 k
Transaction Summary
=============================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 122 k
Downloading Packages:
gdm-docs-2.16.0-59.el5.x86_64.rpm | 122 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gdm-docs 1/1
Installed products updated.
Installed:
gdm-docs.x86_64 1:2.16.0-59.el5
Complete!
[root@swati ~]#
##############
Done. Thanks a lot for the visit.
Love sharing
Amit Chopra
No comments:
Post a Comment