Creation of a local repository mirror
Hello Community!
I would like to ask for your help on the following topic.
Topic:
Creation of a local repository mirror with the abbility to provide information about security related packages.
Action:
1.
First I copied the repository files from an running ol7 in OCI from the folder /etc/yum.repos.d/ and replaced the content of the same folder in the destination system (repo maschine).
2.
I collect all the enabled repositories in a variable from "yum repolist" command.
3.
Loop all the entries in the variable. For each repo-id
- reposync -l -n --download-metadata -r ${i} -p /u01/repo/OracleLinux/${i}