RedHat 7: Repository-Server
by linux8345 from LinuxQuestions.org on (#5J1QF)
Hello everybody,
I set up a repository server hosting the RH7 packages to provide them for my network.
I basically set up an apache and used reposync to get the packages, it looks like this:
Code:reposync -p /dir --repo=rhel-7-server-rpms --download-metadataI got two of those, for baseos and appstream.
This way it syncs the entire repo in my local /dir.
Now I got two problems that I have to solve:
A) I want to keep several versions of the repo, because I might want to add another server later that should have the same versions of patches etc installed. So I plan on copying the directory and create a sublink on the apache server, something similar to: localrepo.domain/2021-05-20
Is that a good way to do it? Or is there better options
B) The software that's running on these servers sometimes is only allowed to run on specific minor-releases of RH7. Let's say it's 7.6.
How can I create a repo that does only contain the packages of RH7.6?
Thank you for your help =)


I set up a repository server hosting the RH7 packages to provide them for my network.
I basically set up an apache and used reposync to get the packages, it looks like this:
Code:reposync -p /dir --repo=rhel-7-server-rpms --download-metadataI got two of those, for baseos and appstream.
This way it syncs the entire repo in my local /dir.
Now I got two problems that I have to solve:
A) I want to keep several versions of the repo, because I might want to add another server later that should have the same versions of patches etc installed. So I plan on copying the directory and create a sublink on the apache server, something similar to: localrepo.domain/2021-05-20
Is that a good way to do it? Or is there better options
B) The software that's running on these servers sometimes is only allowed to run on specific minor-releases of RH7. Let's say it's 7.6.
How can I create a repo that does only contain the packages of RH7.6?
Thank you for your help =)