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

centos更新了内核,出现两个选项

  •  
  •   yinznet · 2013-07-22 18:54:52 +08:00 · 2931 次点击
    这是一个创建于 3980 天前的主题,其中的信息可能已经有所发展或是发生改变。
    centos更新了内核,grub启动出现两个选项,进去好像都是一样的,怎么删掉一个呢?
    4 条回复    1970-01-01 08:00:00 +08:00
    octopus_new
        1
    octopus_new  
       2013-07-22 18:56:58 +08:00   ❤️ 1
    #rpm -q kernel //will list all kernel including current kernel

    #uname -a //check the kernel name

    #rpm -e [kernel name] //remove the kernel which is not use anymore.
    vietor
        2
    vietor  
       2013-07-22 19:03:37 +08:00
    #package-clean --oldkernel --count=1
    vietor
        3
    vietor  
       2013-07-22 19:04:30 +08:00   ❤️ 1
    上面,错了!

    #package-cleanup --oldkernels --count=1
    yinznet
        4
    yinznet  
    OP
       2013-07-22 19:05:50 +08:00
    上面两位都命令不一样,看不懂啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2772 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.