RHEL/CentOS Local Repository Mirror
Jump to navigation
Jump to search
Red Hat Enterprise Linux
Server
Client
CentOS
Server
- 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.
- Create a repos directory in /var/www/html.
- mkdir -p /var/www/html/repos/centos/6
- Synchronize the base, extras, and updates repository.
- reposync -r base -p /var/www/html/repos/centos/6/
- reposync -r updates -p /var/www/html/repos/centos/6/
- reposync -r extras -p /var/www/html/repos/centos/6/
- Create the repository xml files for each of the repos synchronized.
- createrepo /var/www/html/repos/centos/6/base/
- createrepo /var/www/html/repos/centos/6/updates/
- createrepo /var/www/html/repos/centos/6/extras/
Client
Further Reading
- []