Creating a Yum Repository
To create a Yum repository, perform the following steps:
- Run the following command as the root user to install the createrepo package:
yum install createrepo
- Copy all packages that you want to have in your repository into one directory, such as /mnt/local_repo/:
- Change to this directory. Then, run the following command to create the necessary metadata for your Yum repository, as well as the sqlite database for speeding up Yum operations:
createrepo --database /mnt/local_repo