Tuesday, April 15, 2014

Creating Local Repository in RedHat

Install createrepo

Make repository directory and put RPMs there

createrepo /path/to/RPMS

Create repo file

/etc/yum.repos.d/local.repo

[local]
name=Local Repository Demo
baseurl=file:///absolute/path/to/RPMS
enabled=1
gpgcheck=0
protect=1

No comments: