Cara Mengubah Repository AlmaLinux ke Repository Mirror Lokal
Repository mirror lokal adalah langkah yang tepat untuk meningkatkan waktu akses dan pengambilan data, serta mengurangi beban pada server utama.
Almalinux 8
mkdir /etc/yum.repos.d
rpm --import https://kartolo.sby.datautama.net.id/almalinux/RPM-GPG-KEY-AlmaLinux
nano /etc/yum.repos.d/almalinux.repo
Copy dan Paste text berikut:
[baseos]
name=AlmaLinux $releasever - BaseOS
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/baseos
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream]
name=AlmaLinux $releasever - AppStream
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/appstream
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras]
name=AlmaLinux $releasever - Extras
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/extras
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/extras/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
## Sources
[baseos-source]
name=AlmaLinux $releasever - BaseOS Source
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/baseos-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/BaseOS/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream-source]
name=AlmaLinux $releasever - AppStream Source
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/appstream-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/AppStream/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras-source]
name=AlmaLinux $releasever - Extras Source
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/extras-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/extras/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
## Debuginfo
[baseos-debuginfo]
name=AlmaLinux $releasever - BaseOS debuginfo
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/baseos-debuginfo
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/BaseOS/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream-debuginfo]
name=AlmaLinux $releasever - AppStream debuginfo
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/appstream-debuginfo
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/AppStream/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras-debuginfo]
name=AlmaLinux $releasever - Extras debuginfo
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/extras-debuginfo
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/extras/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Lalu simpan, dan jalankan Command berikut
dnf update
Almalinux 9
Untuk mengubah repository AlmaLinux 9 ke mirror lokal, prosesnya hampir sama dengan versi sebelumnya
mkdir /etc/yum.repos.d
rpm --import https://kartolo.sby.datautama.net.id/almalinux/RPM-GPG-KEY-AlmaLinux-9
nano /etc/yum.repos.d/almalinux-appstream.repo
Copy paste text berikut ini:
[appstream]
name=AlmaLinux $releasever - AppStream
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=1
[appstream-debug]
name=AlmaLinux $releasever - AppStream - Debug
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debug
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/AppStream/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
[appstream-source]
name=AlmaLinux $releasever - AppStream - Source
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/AppStream/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
nano /etc/yum.repos.d/almalinux-baseos.repo
Copy paste text berikut:
[baseos]
name=AlmaLinux $releasever - BaseOS
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=1
[baseos-debug]
name=AlmaLinux $releasever - BaseOS - Debug
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debug
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/BaseOS/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
[baseos-source]
name=AlmaLinux $releasever - BaseOS - Source
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/BaseOS/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
nano /etc/yum.repos.d/almalinux-extras.repo
Copy dan paste text berikut ini:
[extras]
name=AlmaLinux $releasever - Extras
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
baseurl=https://kartolo.sby.datautama.net.id/almalinux/$releasever/extras/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
[extras-debug]
name=AlmaLinux $releasever - Extras - Debug
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debug
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/extras/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
[extras-source]
name=AlmaLinux $releasever - Extras - Source
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
baseurl=https://kartolo.sby.datautama.net.id/vault/$releasever/extras/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
metadata_expire=86400
enabled_metadata=0
Simpan lalu jalankan command berikut :
dnf update