yum删除cmake失败

yum删除cmake失败,cmake,centos,yum,Cmake,Centos,Yum,我想更新cmake,旧版本是2.8。但当卸载旧版本cmake时,它不起作用 [chaos@localhost ~]$ cmake --version cmake version 2.8.10.2 [lichao@localhost ~]$ yum info cmake Available Packages Name : cmake Arch : x86_64 Version : 2.8.12.2 Release : 2.el7 Size

我想更新cmake,旧版本是2.8。但当卸载旧版本cmake时,它不起作用

[chaos@localhost ~]$ cmake --version
cmake version 2.8.10.2
[lichao@localhost ~]$ yum info cmake
Available Packages
Name        : cmake
Arch        : x86_64
Version     : 2.8.12.2
Release     : 2.el7
Size        : 7.1 M
Repo        : base
Summary     : Cross-platform make system
URL         : http://www.cmake.org
License     : BSD and MIT and zlib
Description : CMake is used to control the software compilation process using simple
            : platform and compiler independent configuration files. CMake generates
            : native makefiles and workspaces that can be used in the compiler
            : environment of your choice. CMake is quite sophisticated: it is possible
            : to support complex environments requiring system configuration, preprocessor
            : generation, code generation, and template instantiation.
[chaos@localhost ~]$ sudo yum remove cmake -y
[sudo] password for lichao: 
No Match for argument: cmake
No Packages marked for removal

如果要更新,则无需在更新之前删除包。您可以直接执行update命令:

yum update cmake

您使用的
cmake
是手动安装的,而不是使用
yum

yum info
向您显示存储库(base)中可用的软件包信息,该软件包未安装,否则会显示

Repo : installed
因此,由于没有使用
yum
安装cmake,因此无法使用
yum
删除它


注意:您还可以看到版本号不同…

谢谢您的回复,但我确信我应该安装cmake,因为当我键入
[chaos@localhost ~]$cmake——版本cmake版本2.8.10.2
是的,
cmake
已安装,但可能有人自己编译了cmake并运行了
make install
。没有人运行
yum安装cmake