5.3.6. Creating a Yum Repository
To set up a Yum repository, follow these steps:
Install the createrepo package:
~]# yum install createrepo
Copy all of the packages into one directory, such as /mnt/local_repo/
.
Run the createrepo --database
command on that directory:
~]# createrepo --database /mnt/local_repo
This creates the necessary metadata for your Yum repository, as well as the sqlite database for speeding up yum
operations.