由于非得使用4.7的版本,所以找了一大圈,终于发现了一个能用的源:

http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/

更新方法如下:

vi /etc/yum.repos.d/CentOS-Base.repo
内容如下:

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/os/$basearch/
gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#released updates
[update]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/addons/$basearch/
gpgcheck=1
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=1
protect=1

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-centos4
priority=2
protect=1

接下来,导入key
rpm --import http://mirrors.usc.edu/pub/linux/distributions/centos/RPM-GPG-KEY-CentOS-4
yum upgrade
[root@localhost yum.repos.d]# yum upgrade
base                               100% |=========================| 1.1 kB    00:00    
primary.xml.gz            100% |=========================| 856 kB    00:07    
base      : ################################################## 2458/2458
updates                         100% |=========================| 951 B    00:00    
primary.xml.gz            100% |=========================| 129 kB    00:02    
updates   : ################################################## 324/324
addons                           100% |=========================| 951 B    00:00    
primary.xml.gz            100% |=========================| 157 B    00:00    
extras                           100% |=========================| 1.1 kB    00:00    
primary.xml.gz            100% |=========================| 74 kB    00:02    
extras    : ################################################## 244/244

yum update

OK,到此为止,大功告成!!!!!!!!

CentOS4 可用镜像及更新方式相关推荐

  1. 树莓派换源、vim更新:树莓派更换国内可用镜像源

    参考:树莓派vim更新:树莓派更换国内可用镜像源 作者:丶PURSUING 发布时间:2021-02-01 22:40:48 网址:https://blog.csdn.net/weixin_44742 ...

  2. 创建Python数据分析的Docker镜像+Docker自定义镜像commit,Dockerfile方式解析+pull,push,rmi操作...

    实例解析Docker如何通过commit,Dockerfile两种方式自定义Dcoker镜像,对自定义镜像的pull,push,rmi等常用操作,通过实例创建一个Python数据分析开发环境的Dock ...

  3. SQLite复杂表的更新方式

    SQLite复杂表的更新方式 在SQLite中,如果早期设计的表无法满足需要,就需要对表进行更新,如修改名字.添加列.如果针对简单表,修改起来相对容易,直接使用提供的ALTER命令即可.但是如果该表与 ...

  4. 仿站小工具8.0_安卓微信8.0版本可以升级了!新增4个实用功能,内附更新方式...

    昨天凌晨微信8.0版本率先在苹果端上线,预示着微信7.0的时代已经过去了. 这次微信8.0的更新,一共更新了4个功能,因为实用.有趣,引发了众多安卓用户的羡慕之情.不要着急,更新方式在这里. 1. 更 ...

  5. 几种内表更新方式的性能比较

    ABAP程序中,内表更新主要有以下程序中的三种更新方式.一是通过字段符.二是使用索引.三是循环中直接更新.据我观察,直接使用第三种方式的人占大多数,使用字段符与使用索引的人应该差不多.这三种方式实际性 ...

  6. Redux简介以及Redux应用程序中的状态更新方式

    by Syeda Aimen Batool 通过Syeda Aimen Batool Redux简介以及Redux应用程序中的状态更新方式 (An intro to Redux and how sta ...

  7. python采集代理ip_Python采集代理ip并判断是否可用和定时更新的方法

    网上有很多免费的ip地址,都是可以使用的,但是如果手动来获取太麻烦,这里通过Python自动抓取,可以批量获取. 代码如下: # -*- coding: utf-8 -*- import re imp ...

  8. jdk官网下载,附带镜像站下载方式

    jdk官网下载,附带镜像站下载方式 历史 Java 版本官网下载地址 https://www.oracle.com/java/technologies/downloads/archive/ 这个地址可 ...

  9. Composer 国内镜像大全(可用镜像列表)

    Composer 我想作为广大 PHPer 来说现在是必不可少的.但是国内使用的话 或多或少有些问题,所以涌现出很多国内镜像.这里列出几个常用的镜像.当然不是全部,还有可能有其他的...... 阿里云 ...

最新文章

  1. Error in apply(df$var1, 2, mean) : dim(X) must have a positive length
  2. python找最大值的函数_Python 获取最大值函数
  3. 编译小米android系统软件,为Android加入busybox工具之小米(开发版本)
  4. centeos 6.7 mysql 5.7.12_学习centeos7系统 · cdwanze的博文
  5. ADO.NET中在C/S模式中使用的连接池
  6. Qt Quick学习笔记
  7. 简单的Postman,硬是玩出花!我能咋办
  8. mysql自定义多选排序,mysql 使用order by field() 自定义排序
  9. linux常用命令100个(转)
  10. 安徽理工大学大学计算机科学与技术学院,安徽理工大学计算机科学与工程学院介绍...
  11. JDK下载与安装教程(最简单版)
  12. 掌握STC单片机程序烧录方法只需要三步走
  13. 如何在 Excel 中计算 NPS
  14. python操作Excel
  15. Excel实现数据可视化
  16. 购买阿里云服务器ECS快速上云
  17. 【前端篇】火狐浏览器打开调试器,报“Error: Incorrect contents fetched, please reload.”
  18. Django企业开发实战--by胡阳,学习记录1117
  19. win7下搭建小程序服务器,重磅!微信PC端支持小程序直接开启 适配Win7及以上系统...
  20. java基于ssm的洗衣店管理系统

热门文章

  1. HTML5column属性布局页脚,利用column多列属性调整页面文字列布局
  2. mysql安装连接测试c_C连接MySQL数据库开发之Windows环境搭建及测试_MySQL
  3. 2021年人工神经网络第四次作业 - 第二题MNIST手写体识别
  4. 精密单电源虚拟地芯片 TLE2426
  5. 第15届全国大学生智能汽车竞赛 人工智能挑战赛(百度)
  6. 马莉 - 人神共愤的处女座
  7. 三星android功能怎么用,三星GALAXY S II升级Android 4.0新功能介绍及使用技巧
  8. petalinux2020.1 uboot 无法正常加载的问题
  9. C 如何在函数中返回一个数组
  10. 华为服务器面板显示,服务器面板怎么查看