Product SiteDocumentation Site

4.3.3. Using Local Files

If you have the repositories on your local filesystem, configure a baseurl of file:///path/to/repository/.

Make sure to supply the correct path

Make sure to supply the correct path to the repository. file:// is the "protocol" for the location, and the location is /path/to/repository/. Put together, you have three slashes.
See also Section 4.3.7, “Testing & Troubleshooting the YUM Configuration”