tugas 2 administrasi server
Mukhtar Adhi .F
0:00 / 0:00
tugas 2 administrasi server
2 просмотра · 9 дн. назад
Mukhtar Adhi .F
2 просмотра · 9 дн. назад
sebelum update server pastikan repositori yum yang lama
di hapus dengan cara :
Pastikan server terhubung dulu ke internet, ketik:
nmcli connection up enp0s3 (untuk konek ke internet)
nmcli device status (untuk cek status enp0s3)
jika sudah aktif maka test ping google:
ping -c 4 8.8.8.8
Jika sudah, maka ketik perintah ini di mode root
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
lalu bersihkan cache yum yang lama :
yum clean all
lalu buat kembali cache repositori :
yum makecache
lalu pakai perintah :
yum update -y