![如何在 CentOS 5.6 上更新我的 grep 实用程序?](https://linux22.com/image/567670/%E5%A6%82%E4%BD%95%E5%9C%A8%20CentOS%205.6%20%E4%B8%8A%E6%9B%B4%E6%96%B0%E6%88%91%E7%9A%84%20grep%20%E5%AE%9E%E7%94%A8%E7%A8%8B%E5%BA%8F%EF%BC%9F.png)
我使用的是 CentOS 5.6 系统。由于一个错误在我的 grep 版本中。我想升级到新版本。我尝试使用 yum 来更新(升级)它,但失败了。
[root@localhost ~]# cat /etc/redhat-
redhat-lsb/ redhat-release
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.6 (Final)
[root@localhost ~]# grep --version
grep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@localhost ~]# yum update gerp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Setting up Update Process
No Match for argument: gerp
No package gerp available.
No Packages marked for Update
[root@localhost ~]#
答案1
对你有帮助吗yum update grep
?你在复制粘贴时输入了错误:gerp
。
另请注意,RHEL/CentOS 仅反向移植重要的安全修复程序等,并且不会不断更新到任何特定软件的最新版本。
答案2
有打字错误吗?
[root@localhost ~]# yum update ****gerp****
argument: gerp No package gerp available. No Packages marked for Update
你要grep代替格普