How can i make custom local repo?

how can i make custom local repo?

A local repo for what? and why?