mirror external repositories

General support questions
Post Reply
giobaxx
Posts: 10
Joined: 2015/06/29 11:27:15

mirror external repositories

Post by giobaxx » 2019/07/30 10:13:37

Hello guy

Could you tell me if there is a tool in the RedHat/Centos World where we can import/mirror External Repositories? In Ubuntu there is the apt-mirror tool where you can mirror external repositories(not the only ones provided by Canonical).

I've just read the command reposync but it is seem valid only to mirror the offcial repo, not generic one(ie mirroriring the webmin repos). Is it correct? or i'm wrong.

The Idea is to build a Repo Server(Ubuntu - RedHat -Centos) Internally...

Any Advice

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: mirror external repositories

Post by TrevorH » 2019/07/30 10:16:39

You can use reposync for any repo that is configured on your system. You can also use rsync which has the benefit - if you are mirroring the entire repo - of not needing to run createrepo afterwards as it will also pull down the metadata from the remote repo.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dunch
Posts: 66
Joined: 2018/11/07 13:48:53
Location: Yorkshire

Re: mirror external repositories

Post by dunch » 2019/07/30 10:20:06

You can use reposync to mirror any repository you have installed. reposync --repoid=whatever --download_path=/some/where

dunch
Posts: 66
Joined: 2018/11/07 13:48:53
Location: Yorkshire

Re: mirror external repositories

Post by dunch » 2019/07/30 10:20:44

The -n flag is useful as well. Only takes the latest version.

giobaxx
Posts: 10
Joined: 2015/06/29 11:27:15

Re: mirror external repositories

Post by giobaxx » 2019/07/30 10:44:57

TANKS Guys!!!.....i can also sync ubuntu Repos?

giobaxx
Posts: 10
Joined: 2015/06/29 11:27:15

Re: mirror external repositories

Post by giobaxx » 2019/07/30 13:51:07

i was trying some tentative but no success so i will ask again your help. If i want to mirror locally this repos

Code: Select all

[Webmin]
name=Webmin Distribution Neutral
[b]#baseurl=http://download.webmin.com/download/yum[/b]
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
What i need to to run with reposync

User avatar
l2g
Posts: 9
Joined: 2015/08/14 13:04:27
Contact:

Re: mirror external repositories

Post by l2g » 2019/07/30 15:54:03

I wrote this a while ago, but it's still very applicable to your question: http://nuxref.com/2016/10/06/hosting-rpm-repository/

Post Reply