RHEL/CentOS Local Repository Mirror: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Red Hat Enterprise Linux == === Server === === Client === == CentOS == === Server === # This exercise will work with CentOS 6/7. # CentOS requires roughly 10G for base and...")
 
Line 6: Line 6:
=== Server ===
=== Server ===
# This exercise will work with CentOS 6/7.
# This exercise will work with CentOS 6/7.
# CentOS requires roughly 10G for base and 5G for updates, ensure there is enough space is /var/www/html.
# CentOS requires roughly 10GiB for base, 5GiB for updates, and 1GiB for extras, ensure there is enough space is /var/www/html.
# The following packages will need to be installed, yum-utils and createrepo.
## <tt>'''yum install yum-utils createrepo'''</tt>
# Create a repos directory in /var/www/html.
# Create a repos directory in /var/www/html.
## <tt>'''mkdir -p /var/www/html/repos/centos/6'''</tt>
## <tt>'''mkdir -p /var/www/html/repos/centos/6'''</tt>

Revision as of 18:35, 21 January 2015

Red Hat Enterprise Linux

Server

Client

CentOS

Server

  1. This exercise will work with CentOS 6/7.
  2. CentOS requires roughly 10GiB for base, 5GiB for updates, and 1GiB for extras, ensure there is enough space is /var/www/html.
  3. The following packages will need to be installed, yum-utils and createrepo.
    1. yum install yum-utils createrepo
  4. Create a repos directory in /var/www/html.
    1. mkdir -p /var/www/html/repos/centos/6
  5. Synchronize the base, extras, and updates repository.
    1. reposync -r base -p /var/www/html/repos/centos/6/
    2. reposync -r updates -p /var/www/html/repos/centos/6/
    3. reposync -r extras -p /var/www/html/repos/centos/6/
  6. Create the repository xml files for each of the repos synchronized.
    1. createrepo /var/www/html/repos/centos/6/base/
    2. createrepo /var/www/html/repos/centos/6/updates/
    3. createrepo /var/www/html/repos/centos/6/extras/

Client

Further Reading

  1. []