如何在 CentOS 5.6 上更新我的 grep 實用程式?

如何在 CentOS 5.6 上更新我的 grep 實用程式?

我使用的是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代替格普

相關內容