centos8 系统更新配置
[root@localhost yum.repos.d]# sudo tee /etc/yum.repos.d/CentOS-Vault.repo <<'EOF'
> [baseos]
> name=CentOS-8 - BaseOS
> baseurl=https://vault.centos.org/8.5.2111/BaseOS/$basearch/os/
> gpgcheck=1
> enabled=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
>
> [appstream]
> name=CentOS-8 - AppStream
> baseurl=https://vault.centos.org/8.5.2111/AppStream/$basearch/os/
> gpgcheck=1
> enabled=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
>
> [extras]
> name=CentOS-8 - Extras
> baseurl=https://vault.centos.org/8.5.2111/extras/$basearch/os/
> gpgcheck=1
> enabled=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
> EOF
[baseos]
name=CentOS-8 - BaseOS
baseurl=https://vault.centos.org/8.5.2111/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[appstream]
name=CentOS-8 - AppStream
baseurl=https://vault.centos.org/8.5.2111/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[extras]
name=CentOS-8 - Extras
baseurl=https://vault.centos.org/8.5.2111/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[root@localhost yum.repos.d]# sudo yum clean all
25 files removed
[root@localhost yum.repos.d]# sudo yum makecache
CentOS-8 - BaseOS 933 kB/s | 4.6 MB 00:05
CentOS-8 - AppStream 1.3 MB/s | 8.4 MB 00:06
CentOS-8 - Extras 6.0 kB/s | 10 kB 00:01
Metadata cache created.
posted on 2025-12-25 16:35 Indian_Mysore 阅读(5) 评论(0) 收藏 举报
浙公网安备 33010602011771号