Yum server configuration in RHEL/CentOS 6x at client side {ftp method}


***********************************************************************************************

•    Configuration at server side

***********************************************************************************************

•    Stop iptables service & disabled SElinux setting. After this restart network service.

***********************************************************************************************
OUTPUT

[root@yum6 ~]# /etc/init.d/iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@yum6 ~]# /etc/init.d/iptables status
iptables: Firewall is not running.

[root@yum6 ~]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

[root@yum6 ~]# /etc/init.d/network restart
Shutting down interface eth0:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1
                                                           [  OK  ]
[root@yum6 ~]#

***********************************************************************************************

•    Configuration at client side

***********************************************************************************************

•    Stop iptables service & disabled SElinux setting. After this restart network service and create a *.repo file in /etc/yum.repos.d/ directory.

***********************************************************************************************
OUTPUT

[root@server6 ~]# /etc/init.d/iptables status
iptables: Firewall is not running.

[root@server6 ~]# cat /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


[root@server6 ~]# /etc/init.d/network restart
Shutting down interface eth0:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2

[root@server6 ~]# cat /etc/yum.repos.d/cli.repo
[client]
name=pkgs
baseurl=ftp://192.168.1.245/pub/Packages
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@server6 ~]# yum clean all
Loaded plugins: refresh-packagekit, rhnplugin
Cleaning up Everything

[root@server6 ~]# yum list | less

Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
ConsoleKit.i686                        0.4.1-3.el6                        @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
ConsoleKit-libs.i686                   0.4.1-3.el6                        @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
ConsoleKit-x11.i686                    0.4.1-3.el6                        @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
DeviceKit-power.i686                   014-1.el6                          @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
GConf2.i686                            2.28.0-6.el6                       @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
GConf2-gtk.i686                        2.28.0-6.el6                       @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
MAKEDEV.i686                           3.24-6.el6                         @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0
ModemManager.i686                      0.4.0-3.git20100628.el6            @anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0



yum-plugin-versionlock.noarch          1.1.26-11.el6                      client
yum-presto.noarch                      0.6.2-1.el6                        client
zlib-devel.i686                        1.2.3-25.el6                       client
zsh.i686                               4.3.10-4.1.el6                     client
(END)

[root@server6 ~]# rpm -qa *bind*
bind-libs-9.7.0-5.P2.el6.i686
PackageKit-device-rebind-0.5.8-13.el6.i686
bind-9.7.0-5.P2.el6.i686
samba-winbind-clients-3.5.4-68.el6.i686

[root@server6 ~]# yum remove bind -y
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package bind.i686 32:9.7.0-5.P2.el6 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                             Arch                                Version                                            Repository                             Size
========================================================================================================================================================================
Removing:
 bind                                i686                                32:9.7.0-5.P2.el6                                  @cdrom                                6.4 M

Transaction Summary
========================================================================================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : 32:bind-9.7.0-5.P2.el6.i686                                                                                                                      1/1

Removed:
  bind.i686 32:9.7.0-5.P2.el6                                                                                                                                          

Complete!

[root@server6 ~]# yum install bind -y
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package bind.i686 32:9.7.0-5.P2.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                             Arch                                Version                                            Repository                             Size
========================================================================================================================================================================
Installing:
 bind                                i686                                32:9.7.0-5.P2.el6                                  client                                3.5 M

Transaction Summary
========================================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 3.5 M
Installed size: 6.4 M
Downloading Packages:
bind-9.7.0-5.P2.el6.i686.rpm                                                                                                                     | 3.5 MB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : 32:bind-9.7.0-5.P2.el6.i686                                                                                                                      1/1

Installed:
  bind.i686 32:9.7.0-5.P2.el6                                                                                                                                          

Complete!
[root@server6 ~]#

***********************************************************************************************


0 comments:

Post a Comment

Note: only a member of this blog may post a comment.