当前位置: 首页 > news >正文

RedHat 5.7升级为PAE内核,并更新yum源

内核升级为PAE的方式

1.安装好RedHat 5.7的系统后,将rhel-server-5.7-i386-dvd.iso解压,进入下列目录下,下面两个包传到redhat 5.7里。
在这里插入图片描述
2.执行安装命令:

yum install -y kernel-PAE-* --nogpgcheck

3.安装好后进入/boot/grub/grub.conf目录

[root@redhat-57 ~]# vi /boot/grub/grub.conf

将default=1改为default=0并保存
4.然后reboot重启,内核即成功改为2.6.18-274.el5PAE。

更新yum源

1.将redhat的yum源替换成centos的源

[root@redhat-57 ~]# cd /etc/yum.repos.d/
[root@redhat-57 yum.repos.d]# ll
total 24
-rw-r--r-- 1 root root   67 Apr 28 17:53 redhat.repo
-rw-r--r-- 1 root root  561 Jun 29  2011 rhel-debuginfo.repo
-rw-r--r-- 1 root root 1749 Apr 28 17:52 rhel-source.repo

2.如果没有rhel-source.repo文件,则需要新建,在rhel-source.repo中填入一下内容:

[root@redhat-57 yum.repos.d]# vi rhel-source.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/5.10/os/i386/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/5.10/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/5.10/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/5.10/centosplus/$basearch/
gpgcheck=1
enabled=0    
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5#contrib - packages by Centos Users 
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/5.10/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-5

清理缓存

[root@redhat-57 yum.repos.d]# yum clean all

更新缓存

[root@redhat-57 yum.repos.d]# yum makecache
http://www.dtcms.com/a/352606.html

相关文章:

  • 软件产品线过程模型全景解析:双生命周期、SEI 与三生命周期
  • 《数据之心》——鱼小妖全传
  • 数据结构07(Java)-- (堆,大根堆,堆排序)
  • JHipster 一个基于 Yeoman 的全栈应用生成器
  • 常见软件优化功能项
  • More Effective C++ 条款09:使用析构函数防止资源泄漏
  • 用友NCC 如何通过OpenApi 上传附件
  • 【计组】总线与IO
  • 【C++】智能指针底层原理:引用计数与资源管理机制
  • 菜鸡还没有找到工作(DAY41)
  • 永磁同步电机无速度算法--高频脉振正弦波注入到两相静止坐标系
  • 全新机器人遥操作触觉感知解决方案
  • postman使用教程
  • MATLAB 实现子图不规则排列
  • 【软考论文】论自动化测试方法及其应用
  • 这个AI有点懒
  • ZAM5404B:通道速率和信号带宽双提升,工业采集更高效
  • Tokenizer
  • 2025全国大学生数学建模B题思路+模型+代码9.4开赛后第一时间更新,备战国赛,算法解析支持向量机(SVM)
  • 华为云之CodeArts IDE Online平台部署Homepage个人导航页【玩转华为云】
  • k230 canMV 单路、双路、三路摄像头高清显示源代码
  • 数据存储工具 ——Redis
  • 构建面向人工智能决策的世界模型引擎所需的基本知识体系
  • 视觉工具:文字显示、图像标注与多模板匹配
  • Mysql——一条 update 语句的执行过程
  • Prometheus 指标类型
  • Solon Web 的两种 Context-Path 配置
  • Vuex 和 Pinia 各自的优点
  • MATLAB中函数的详细使用
  • Linux-孤儿进程和僵死进程