Pawan Sharma | March 22, 2013 | Be the first to comment!

Configure YUM server to install/update packages on remote server

In the previous post we learn how to create a YUM repository or YUM server on Redhat Enterprise Linux 6. Now if you want to use this YUM server to manage packages on other servers follow below mentioned steps.

1. Create the YUM server as described in previous post.
2. Install vsftpd using yum command.

# yum install vsftpd

3. Make changes in “/etc/vsftpd/vsftpd.conf” as below.


4. Login to the client machine on which you want to install packages.
5. Create a .repo file in “/etc/yum.repos.d/” directory.

# vi /etc/yum.repos.d/RHEL6.repo

name= RHEL 6 remote repository

6. Run command yum clean all.

# yum clean all

You can now use yum commands to install, remove and query packages.

# yum info httpd

Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-manager, tmprepo, verify,
               : versionlock
Updating certificate-based repositories.
Loading support for Red Hat kernel ABI
Installed Packages
Name           : httpd
Arch           : x86_64
Version        : 2.2.15
Release        : 15.el6
Size           : 2.9 M
Repo           : installed
From repo      : anaconda-RedHatEnterpriseLinux-201105101844.x86_64
Summary        : Apache HTTP Server
URL            :
License        : ASL 2.0
Description    : The Apache HTTP Server is a powerful, efficient, and extensible
               : web server.

Please comment if you have any questions.

No comments:

Post a Comment