YV4usGtvaOIAeXIa
V2EX  ›  问与答

Centos 更换内核时候 rpm -ivh 的 rpm 包保留在哪里?我要删掉~!

  •  
  •   YV4usGtvaOIAeXIa · Jul 15, 2016 · 2983 views
    This topic created in 3763 days ago, the information mentioned may be changed or developed.
    执行了下面这个命令来更换内核……

    rpm -ivh http://vault.centos.org/6.6/centosplus/i386/Packages/kernel-2.6.32-504.3.3.el6.centos.plus.i686.rpm --force

    但是我尝试好几个内核,貌似都没成功装上,只装上了一个
    会不会残留下载的 rpm 包。。。在哪里
    我想删掉……
    6 replies  •  2016-07-29 16:04:34 +08:00
    YV4usGtvaOIAeXIa
    YV4usGtvaOIAeXIa
    OP
    Jul 15, 2016
    1
    话说会不会留下 rpm 包的……
    kid740246048
    kid740246048
    Jul 15, 2016 via Android
    2
    find / -name kernel-2.6.32-504.3.3.el6.centos.plus.i686.rpm
    YV4usGtvaOIAeXIa
    YV4usGtvaOIAeXIa
    OP
    Jul 15, 2016
    3
    @kid740246048 这样并没有找到。。。
    notgod
    notgod
    Jul 15, 2016
    4
    这个直接远程安装的 只是缓存到本地安装后自动清理的
    所以本地没有
    无影响
    YV4usGtvaOIAeXIa
    YV4usGtvaOIAeXIa
    OP
    Jul 15, 2016
    5
    @notgod 原来是这样。。。
    suduo1987
    suduo1987
    Jul 29, 2016
    6
    查看当前内核版本:

    uname -r

    查看已安装内核版本:

    rpm -qa | grep kernel

    安装指定内核:

    rpm -ivh kernel-{version}.rpm --force

    移除指定内核:

    yum remove kernel-{version}

    禁止内核升级:

    在"/etc/yum.conf"中添加:

    exclude=kernel* centos-release*

    注意: If there are multiple package to be excluded then separate them using a single space or comma. Also, do not add multiple exclude= lines in the configuration file because yum only considers the last exclude entry.

    内核文件 Google 关键字:

    kernel-{version}.rpm site:centos.org

    http://suduo.lofter.com/post/818dc_ae8488c
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:12 · PVG 23:12 · LAX 07:12 · JFK 10:12
    ♥ Do have faith in what you're doing.