V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Jestom
V2EX  ›  问与答

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

  •  
  •   Jestom · 2016-07-15 23:00:42 +08:00 · 2242 次点击
    这是一个创建于 2864 天前的主题,其中的信息可能已经有所发展或是发生改变。
    执行了下面这个命令来更换内核……

    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 条回复    2016-07-29 16:04:34 +08:00
    Jestom
        1
    Jestom  
    OP
       2016-07-15 23:05:03 +08:00
    话说会不会留下 rpm 包的……
    kid740246048
        2
    kid740246048  
       2016-07-15 23:26:39 +08:00 via Android
    find / -name kernel-2.6.32-504.3.3.el6.centos.plus.i686.rpm
    Jestom
        3
    Jestom  
    OP
       2016-07-15 23:30:41 +08:00
    @kid740246048 这样并没有找到。。。
    notgod
        4
    notgod  
       2016-07-15 23:30:50 +08:00
    这个直接远程安装的 只是缓存到本地安装后自动清理的
    所以本地没有
    无影响
    Jestom
        5
    Jestom  
    OP
       2016-07-15 23:31:06 +08:00
    @notgod 原来是这样。。。
    suduo1987
        6
    suduo1987  
       2016-07-29 16:04:34 +08:00
    查看当前内核版本:

    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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2257 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:41 · PVG 20:41 · LAX 05:41 · JFK 08:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.