/ Linux

Packages repositories

RPM repository

Drop your RPMs files in a given /srv/repositories/rpm/myrepo, then write down this /srv/repositories/rpm/repositories.sh script

#!/bin/bash
# Option -s sha required for CentOS 5 compatibility
createrepo /srv/repositories/rpm/myrepo -s sha

Then you've to expose this directory as HTTP(S), using HTTPD, Nginx or whatever

Client side, Write down myrepo.repo

[rpm-repository-name]
name = RPM repository description
baseurl = http://rpmserver.company.com/repositories/myrepo
failovermethod=priority
enabled=1
gpgcheck=0
Packages repositories
Share this