2020年12月份,Centos官方宣布了Centos6生命周期结束的消息,停止了CentOS 6的更新支持,同时官方也把yum软件源删除了,相应的国内许多Linux镜像站也清空了Centos6的yum软件源,比如大家常用的阿里云镜像站和网易镜像站等。

    测试一下yum源仍然可以正常使用。

    1. [root@jumpserver yum.repos.d]# more CentOS-Base.repo
    2. [base]
    3. name=CentOS-6 - Base
    4. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/os/$basearch/
    5. enabled=1
    6. gpgcheck=1
    7. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-6
    8. #released updates
    9. [updates]
    10. name=CentOS-6 - Updates
    11. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/updates/$basearch/
    12. enabled=1
    13. gpgcheck=1
    14. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-6
    15. #additional packages that may be useful
    16. [extras]
    17. name=CentOS-6 - Extras
    18. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/extras/$basearch/
    19. enabled=1
    20. gpgcheck=1
    21. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-6
    22. #additional packages that extend functionality of existing packages
    23. [centosplus]
    24. name=CentOS-6 - Plus
    25. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/centosplus/$basearch/
    26. gpgcheck=1
    27. enabled=1
    28. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-6
    29. #contrib - packages by Centos Users
    30. [contrib]
    31. name=CentOS-6 - Contrib
    32. baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/6.5/contrib/$basearch/
    33. gpgcheck=1
    34. enabled=1
    35. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-6