Linux:可以使用yum将linux系统升级吗?

Linux:可以使用yum将linux系统升级吗?,第1张

yum可以将linux系统升级,但是默认仅限于同一个大版本之间.

比如yum可以将linux系统从CentOS5.4升级到CentOS5.9但不可以升级到6.X系列如果你发现了可以夸大版本升级的方法,希望能共享一下.

1、作用

都是系统升级命名。

2、升级内容

yum -y update:升级所有包同时也升级软件和系统内核

yum -y upgrade:只升级所有包,不升级软件和系统内核。

3、使用范围

yum -y update:需要更新内核;

yum -y upgrade:更新系统时,软件和内核保持原样。

扩展资料:

安装软件(以foo-x.x.x.rpm为例):yum install foo-x.x.x.rpm

删除软件:yum remove foo-x.x.x.rpm或者yum erase foo-x.x.x.rpm

升级软件:yum upgrade foo或者yum update foo

查询信息:yum info foo

搜索软件(以包含foo字段为例):yum search foo

显示软件包依赖关系:yum deplist foo

常用功能:

-q 静默执行

-t 忽略错误

-R[分钟] 设置等待时间

-y 自动应答yes

--skip-broken 忽略依赖问题

--nogpgcheck 忽略GPG验证

你可以安装比较新的gcc来更新,我看centos 7.2下面有一个gcc-nm,与nm报的信息一样:

[root@localhost ~]$nm --version

GNU nm version 2.23.52.0.1-55.el7 20130226

Copyright 2013 Free Software Foundation, Inc.

This program is free softwareyou may redistribute it under the terms of

the GNU General Public License version 3 or (at your option) any later version.

This program has absolutely no warranty.

[root@localhost ~]$gcc-nm --version

GNU nm version 2.23.52.0.1-55.el7 20130226

Copyright 2013 Free Software Foundation, Inc.

This program is free softwareyou may redistribute it under the terms of

the GNU General Public License version 3 or (at your option) any later version.

This program has absolutely no warranty.

也可以安装 binutils.x86_64 : A GNU collection of binary utilities 试试,

yum install binutils 或者

yum update binutils

从搜索上看nm信息为:nm - GNU Binary Utilities


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7540711.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-06
下一篇2023-04-06

发表评论

登录后才能评论

评论列表(0条)

    保存