Finally, I am updating all 3 repo's metadata at am, am, and am, respectively.
mkdir -p /var/www/html/repos/centos/7/ # Base and Update Repos mkdir -p /var/www/html/repos/epel/7/x86_64 # EPEL Repo createrepo /var/www/html/repos/centos/7/os/x86_64/ # Initialize Cent OS Base Repo createrepo /var/www/html/repos/centos/7/updates/x86_64/ # Initialize Cent OS Update Repo createrepo /var/www/html/repos/epel/7/x86_64/ # Initialize EPEL 7 Repo .
Now that our local repo mirror is set up and running, we just need to update our Cent OS 7 clients to point to these repos and we'll be done.
To do this, we need to edit the systemctl enable nginx.service && systemctl enable firewalld.service # Enable services systemctl start firewalld.service # Ensure firewalld is running firewall-cmd --permanent --add-service=http firewall-cmd --reload systemctl reboot # System reboot And we're done!
This post is for installing your own Linux repository server, running on Cent OS 7 to host Cent OS 7 repos.
Additional EL repos (Cent OS 5/6, RHEL, Scientific Linux, etc) are definitely possible to store here, as well as a Debian based repos (Debian, Ubuntu, etc), though not quite as easy.