Setting RPM Repo Server (CentOS)

10 Jan 2011 by resident Unix Admin

Step 1 (On RPM Repo Server): Install Web Server (If needed)

Setup RPM Repository

Put RPM files under /var/www/html/centos/5/base/i386 and/or
/var/www/html/centos/5/updates/i386

Now every time you update/add rpm files in /var/www/html/centos/5/base/i386 or /var/www/html/centos/5/updates/i386 you need to run “createrepo” command. *Step 2 (On Clients:)*: Setup Setup /etc/yum.repos.d/local.repo (Replace rpmserver.example.com with fqdn of your repo server)

blog comments powered by Disqus