This question already has an answer here:

How can one setup local yum repository using the downloaded rpm packages?

This is a note to self. I am not sure if this good way, but I am trying nevertheless.

marked as duplicate by Jenny D, Michael Hampton Aug 12 '14 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I completely understand the negative vote. However I wanted this note for my own reference. I could not find any better way to do this on meta exchange as well. Suggestions to take note for self are welcome. Thanks. – Manish Sapariya Aug 12 '14 at 11:13
  • I suggest searching first. This question has been asked and answered here several times. – Michael Hampton Aug 12 '14 at 15:10

Details are here

In summary:

  • yum install createrepo
  • mkdir /repository1
  • copy packages to /repository1
  • createrepo /repository1
  • Create yum.repo file

    name=Custom Repository

  • Setting gpgcheck=1 is Strongly recommended – HBruijn Aug 12 '14 at 6:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.