博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS打Meltdown等漏洞的补丁包
阅读量:6469 次
发布时间:2019-06-23

本文共 4090 字,大约阅读时间需要 13 分钟。

首先查看系统版本
[root@MyLinux home]# cat /etc/*-release
CentOS Linux release 7.4.1708 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
 
[root@MyLinux home]# uname -a
Linux baidu.com 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
这里的版本是更新之后的版本
 
配置机器的YUM源文件
[root@MyLinux yum.repos.d]# cat CentOS-Base.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]
releasever=7.4.1708
name=CentOS-7.4.1708 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.aliyun.com/centos/7.4.1708/os/$basearch/
gpgcheck=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#released updates
[updates]
name=CentOS-$releasever - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.aliyun.com/centos/7.4.1708/updates/$basearch/
gpgcheck=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.aliyun.com/centos/7.4.1708/extras/$basearch/
gpgcheck=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - 163.com
baseurl=http://mirrors.aliyun.com/centos/7.4.1708/centosplus/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
 
上面的aliyun完全是从163改过来的,名字都没修改
 
更新YUM的时候出现了下面的错误
[root@MyLinux ~]# yum repolist
Loaded plugins: fastestmirror, langpacks
base | 272 B 00:00:00
http://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
base/x86_64 | 272 B 00:00:00
http://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
centosplus/x86_64 | 272 B 00:00:00
http://mirrors.aliyun.com/centos/7.4.1708/centosplus/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for centosplus: Damaged repomd.xml file
Trying other mirror.
extras/x86_64 | 272 B 00:00:00
http://mirrors.aliyun.com/centos/7.4.1708/extras/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for extras: Damaged repomd.xml file
Trying other mirror.
updates/x86_64 | 272 B 00:00:00
http://mirrors.aliyun.com/centos/7.4.1708/updates/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for updates: Damaged repomd.xml file
Trying other mirror.
错误的原因就是代理上网的地址写的重复了
更新一下/etc/tum.conf就可以了
proxy=
然后看一下是否都生效了
[root@MyLinux yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
repo id repo name status
base/x86_64 CentOS-7.4.1708 - Base - 163.com 9,591
centosplus/x86_64 CentOS-7 - Plus - 163.com 92
extras/x86_64 CentOS-7 - Extras - 163.com 448
nvidia-diag-driver-local-384.66 nvidia-diag-driver-local-384.66 8
updates/x86_64 CentOS-7 - Updates - 163.com 2,416
repolist: 12,555
 
最后安装需要的包
yum install kernel microcode_ctl
重启查看安装后的情况
 
[root@MyLinux yum.repos.d]# yum install kernel microcode_ctl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package kernel-3.10.0-693.21.1.el7.x86_64 already installed and latest version
Package 2:microcode_ctl-2.1-22.5.el7_4.x86_64 already installed and latest version
Nothing to do
[root@MyLinux yum.repos.d]#
 
 
 
 
 
 
 
 

<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">

 
 
 
 

转载于:https://www.cnblogs.com/kongchung/p/9057213.html

你可能感兴趣的文章
传统运维团队转型应该注意哪些问题?
查看>>
JavaScript函数(二)
查看>>
Airbnb改进部署管道安全性,规范部署顺序
查看>>
腾讯最大规模裁撤中层干部,让贤年轻人
查看>>
当我们谈性能的时候,我们实际上在谈什么?
查看>>
Spring Boot 2.0将会增强Actuator端点的特性
查看>>
i4o开源项目增强LINQ索引功能
查看>>
蔡超:入门 Go 语言必须跨越的五个思维误区
查看>>
使用Akka Actor和Java 8构建反应式应用
查看>>
curl常用命令详解
查看>>
saltstack 添加计划任务
查看>>
Puppet module命令参数介绍(六)
查看>>
《UNIX网络编程》中第一个timer_server的例子
查看>>
CISCO 路由器(4)
查看>>
网络服务搭建、配置与管理大全(Linux版)
查看>>
Silverlight 5 Beta新特性[4]文本缩进控制
查看>>
springMVC多数据源使用 跨库跨连接
查看>>
简单java在线测评程序
查看>>
录音和朗诵的实现
查看>>
Git服务端和客户端安装笔记
查看>>