Sometimes you'll find you need to be able to collect a bunch of rpm packages you have together in one place and you want to make them available to your systems running yum. It is pretty easy to do.
This project defines the rpm-metadata (repodata) format and maintains one of the programs (createrepo) which create this format from existing rpms and other sources.
docker run -v /srv/repo:/data sark/createrepo:latest
docker run -e verbose=true -v /srv/repo:/data sark/createrepo:latest
docker run -e verbose=true -e database=true -e update=true -e deltas=true -v /srv/repo:/data createrepo
Create the file /etc/cron.hourly/createrepo and add the following:
#!/bin/bash
logger "Createrepo: started indexing"
docker run -e verbose=true -v /srv/repo:/data sark/createrepo:latest
logger "Createrepo: finished indexing"
Add run premissions to cron-file:
sudo chmod +x /etc/cron.hourly/createrepo
MIT
Content type
Image
Digest
sha256:3da53c7ac…
Size
75.8 MB
Last updated
almost 11 years ago
docker pull sark/createrepo