Theme images by kelvinjay. Powered by Blogger.

RHEL

HTML

MCSA

HACKING & TRICKS

» » How To Configure YUM Server and Client In RHEL 7 ...!!!

How To Configure YUM Server and Client In RHEL 7 ...!!!


Yum Server Configuring

Yum server IP = 192.168.0.1
Yum server hostname = server1.example.com

First Should be flush the iptables and restart the network service :- 
1) iptables -L
2) iptables -F
3) service iptables save
4) service iptables restart
5) service network restart
6) setenforce 0

Step 1: Insert the RHEL 7.1 CD

[root@server Desktop]# cd /run/media/root/RHEL-7.1\ Server.x86_64/Packages/

Yum server required packages

[root@server1 Packages]# rpm -ivh vsftpd*
[root@server1 Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
[root@server1 Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm




Step 2 : FTP service start

[root@server1 Packages]# service vsftpd status

[root@server1 Packages]# service vsftpd start

[root@server1 Packages]# service vsftpd status

[root@server1 Packages]# chkconfig vsftpd on



Step 3: Copy the rhel6 dvd content

[root@server Packages]# cd

[root@server ~]# cp -rf /run/media/root/RHEL-7.1\ Server.x86_64/  /var/ftp/pub/

[root@server ~]# cd /var/ftp/pub/
[root@server pub]# ls
RHEL-7.1 Server.x86_64


Step 4: Single mode installation createrepo

[root@server ~]# createrepo -v /var/ftp/pub/

[root@server ~]# cd /var/ftp/pub/



Step 5 : Create the repo file

[root@server ~]# vim /etc/yum.repos.d/server.repo
[rhel]
name=rhel7.1
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0
 


[root@server ~]# yum repolist

--------------------------------------------------------------------------------------------------------------------------

Yum Client Repo Configuring

Yum client IP = 192.168.0.2
Yum client hostname = client1.example.com



Step 1 : Create the repo file

1) setenforce 0

[root@client1~]# vim /etc/yum.repos.d/client.repo
[client1]
name=rhel7.1
baseurl=ftp://192.168.0.1/pub
enabled=1
gpgcheck=0








«
Next
This is the most recent post.
»
Previous
Older Post

No comments:

Leave a Reply

How To Configure YUM Server and Client In RHEL 7 ...!!!

How To Configure YUM Server and Client In RHEL 7 ...!!! Yum Server Configuring Yum server IP = 192.168.0.1 Yum server hostname = s...