zoukankan      html  css  js  c++  java
  • CentOS打Meltdown等漏洞的补丁包

    首先查看系统版本
    [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就可以了
    然后看一下是否都生效了
    [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;">






    万事走心 精益求美


  • 相关阅读:
    星辰小队针对于软件“星遇”的10天冲刺——第8天
    星辰小队针对于软件“星遇”的10天冲刺——第7天
    周周总结——时时更新(第4学期,第11周)
    星辰小队针对于软件“星遇”的10天冲刺——第6天
    星辰小队针对于软件“星遇”的10天冲刺——第5天
    对于文章的字母、单词、短语,(无用词表)的检索Java代码实现
    星辰小队针对于软件“星遇”的10天冲刺——第4天
    图片保存到相册
    心情不好
    NSString和data转换
  • 原文地址:https://www.cnblogs.com/kongchung/p/9057213.html
Copyright © 2011-2022 走看看