I have a local RHEL 7 yum repository that's not connected to the Internet. I need to add some RPMs from CD to this repository manually. I can't seem to find any information on this after exhaustive searching. Can someone tell me how to do this?


2 Answers 2


Using createrepo against a directory will update its repo metadata or create it if none exists.

createrepo some/directory
  • You run this after copying the rpms into the repo directory, yes?
    – docwebhead
    Nov 28, 2017 at 20:40
  • @docwebhead: Correct. Nov 28, 2017 at 20:42

The tool that's often used for this job is createrepo.

See f.ex. here for a howto: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-yum_repository

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .