YUM offline repo

General support questions
Post Reply
droidus
Posts: 31
Joined: 2018/10/14 13:23:12

YUM offline repo

Post by droidus » 2020/04/09 15:28:05

I am trying to create a yum repo for offline use. I am following this tutorial: https://www.tecmint.com/setup-local-htt ... -centos-7/. When I create new repo data, the one for base successfully generates the file. The ones that follow fail with this error message: "Error: groupfile /var/www/html/repos/updates/comps.xml cannot be found."

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

Re: YUM offline repo

Post by TrevorH » 2020/04/09 15:42:14

If you're just creating a local mirror of the CentOS repos then you're doing it the long and complicated and difficult way. It's much easier if you just rsync the mirror contents from a public one and then you don't need to run createrepo at all since it replicates the metadata with it.
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

droidus
Posts: 31
Joined: 2018/10/14 13:23:12

Re: YUM offline repo

Post by droidus » 2020/04/09 17:10:44

OK, I think I found a tutorial for this: https://www.howtoforge.com/creating_a_l ... ory_centos.
Looking here, I don't see Base: http://mirrors.oit.uci.edu/centos/7/.
Also, does it matter if I pull from 7 or 7.7 if I am running 7.7?

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

Re: YUM offline repo

Post by TrevorH » 2020/04/09 17:22:20

We have our own wiki page about it, look at the instructions at the bottom https://wiki.centos.org/HowTos/CreateLocalMirror

And you should sync the 7.z directory not /7/ as that's a symlink pointing to the current version. If you sync that then it will sync e.g. 7.8 over the top of 7.7 and create a bit of a mess. Sync the point release directory and maintain your own /7/ symlink so that you have control over when you go live with it. Will need more space but it's also more control.
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

droidus
Posts: 31
Joined: 2018/10/14 13:23:12

Re: YUM offline repo

Post by droidus » 2020/04/10 15:40:13

Where is base?

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

Re: YUM offline repo

Post by TrevorH » 2020/04/10 16:21:00

"base" is the 'os' directory.
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

Post Reply