HTTP Client side configuration (Part 4)HARDWARE NETWORKING LINUX SOFTWAREIt Tech Technology

It Tech Technology

COMPUTER HARDWARE NETWORKING

Breaking

Home Top Ad

Post Top Ad

Saturday, January 9, 2016

HTTP Client side configuration (Part 4)




Step-3:  Editing hosts file

[root@yumsrv ~]# vi /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
210.207.201.254 yumsrv     yumsrv

210.207.201.x   pc1        pc1

Step-1:  Locating repository information

[root@pc1 ~]# vi /etc/yum.conf

[main]
gpgcheck=0

plugins=0

[RHEL5-Repository]
name=Red Hat Enterprise Linux Local Repository

baseurl=http://210.207.201.254/rhel5

enabled=1

gpgcheck=0

gpgkey=http://210.207.201.254/rhel5/RPM-GPG-KEY-redhat-release

Step-2:  Locating debug information

[root@pc1 ~]# cd /etc/yum.repos.d/
[root@pc1 yum.repos.d]# cp rhel-debuginfo.repo  rhel5.repo
[root@pc1 yum.repos.d ~]# vi rhel5.repo

[RHEL5-Debuginfo]
name= Red Hat Enterprise Linux Local Repository Debuginfo

baseurl=http://210.207.201.254/rhel5

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Note: Now remove or move the rhel-debuginfo.repo file, otherwise yum will be try to use this file

Step-3:  Disable RHN plug-ins

[root@pc1 ~]# cd /etc/yum/pluginconf.d
[root@pc1 ~ pluginconf.d]# vi rhnplugin.conf

[main]
enabled=0

gpgcheck=0

[rhel-i386-server-5]
enabled=0

Step-4:  Testing the server

Now verify that your client can download and install packages from yum server by typing the command below.

[root@pc1 ~]# yum clean all

[root@pc1 ~]# yum update

[root@pc1 ~]# yum list

[root@pc1 ~]# yum install kernel* gcc* lib* httpd* vsftpd* -y

[root@pc1 ~]# yum erase kernel* gcc* lib* httpd* vsftpd* -y

So, now you can install & uninstall your all required packages from local http server by using yum command.

Post Bottom Ad