I have a internal CentOS8 server (A) (disengage from internet).
I want to migrate to Almalinux.
I try to build local repository of AlmaLinux on my gateway server(B), but storage space is less than 200GB free for another local repository of AlmaLinux because this storage has CentOS8 repository.
(B) server is running on CentOS8, and it will migrate to AlmaLinux soon.
Can I create/sync repository of AlmaLinux (less than 200GB storage)?
Can I migrate CentOS8 to AlmaLinux with local repository ?
Just a quick thought here: why do you need the CentOS8 repository on server B? It has 7 days left to live, and if you are going to migrate to Alma could you not just delete the local repo and use the space for an Alma one?
Server A canât access to internet. A local repository on server B is a dnf target of server A.
If the CentOS8 repository was fixed and It does not need for migration to AlmaLinux, I can delete repository on server B.
Look at jlehtoneâs figures. The total Alma repository is 50GiB, you have got just under 200GiB free. Remember that you do not need to duplicate EPEL or any other third party repositories, they stay the same. I understand your caution (Iâve run air-gapped machines in the past) and so I would suggest:
Create a new Alma repository using just the repos jlehtone mentions.
You should still have over 100 GiB, so donât panic!
(pretty obviously - a full backup)
Run the conversion script
When you are happy with the situation, remove the old CentOS repos, but not the third party ones.
25GiB. The last line was total of the four subdirs.
Then again, the official mirrors probably have content in those subdirs that I donât sync with:
MIRROR=<closest official mirror>
VERS=8.5
SOURCE=${MIRROR}/${VERS}
DEST=/site/mirrors/almalinux.org/${VERS}
for R in BaseOS AppStream PowerTools extras
do
${RSYNC} --exclude="SRPMS/" ${SOURCE}/${R}/x86_64/os/ ${DEST}/${R}/x86_64/os/
done
I understand an AlmaLinux local repository doesnât use 200GiB that was written in AlmaLinux wiki.
sorry⌠another question,
server B (gateway / repository) has no permissions for outgoing rsync protocol.
(Itâs my fault of firewall configurations, and that is managed by upper authoritiesâŚ)
Is it possible to set âreposyncâ to ${RSYNC} ?
Does âreposyncâ need yum.repos.d information ? It should be used after migration of server B ?
Iâve never used reposync. (The sync job was running on CentOS 6 until last year. Did that even have reposync?)
I do use RSYNC="/usr/bin/rsync -aqH --no-g --no-o --delete --delay-updates --bwlimit=1024"
and connect to a mirror that has rsync server.
How does your server B sync the CentOS8 repos? With reposync?
If one canât prune what reposync pulls in and canât use rsync protocol, then how about curl, wget, or lftp? The ftp can definitely âmirrorâ a tree and the others can use https/http.
After all, you do need just enough of repo content to migrate. Once done, you can free space by removing the CentOS repo mirror and start mirroring Alma repos âyour normal wayâ.
[EDIT] One more thing âŚ
Your A has connection to B and B has connection to outside. Is it possible for B to act as proxy? Particularly, if the migration script wants to talk to official Alma repos, then a proxy might solve that dilemma.