Linux Operating System (MOSC)

MOSC Banner

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}

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center