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

[[email protected] ~]# 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

[[email protected] ~]# 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

[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# cp rhel-debuginfo.repo  rhel5.repo
[[email protected] 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

[[email protected] ~]# cd /etc/yum/pluginconf.d
[[email protected] ~ 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.

[[email protected] ~]# yum clean all

[[email protected] ~]# yum update

[[email protected] ~]# yum list

[[email protected] ~]# yum install kernel* gcc* lib* httpd* vsftpd* -y

[[email protected] ~]# 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