mkdir /mnt/cdrom
mount /dev/sr0 /mnt/cdrom
[InstallMedia-BaseOS]
name=CentOS Linux 8 - BaseOS
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/cdrom/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[InstallMedia-AppStream]
name=CentOS Linux 8 - AppStream
metadata_expire=-1
gpgcheck=1
enabled=1
baseurl=file:///mnt/cdrom/AppStream/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

Untuk membersihkan cache repository

dnf clean all

Untuk mengecek apakah repository sudah berhasil di daftarkan

yum repolist

Jika menggunakan redhat dan ingin menghilangkan warning subcription

vi /etc/yum/pluginconf.d/subscription-manager.conf

Rubah menjadi enable=0

enabled=0

Leave a Reply

Your email address will not be published. Required fields are marked *