我想更新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
发布于 2019-11-14 18:46:01
您使用的cmake
是手动安装的,而不是使用yum
。
yum info
向您显示您的存储库(基础)中可用的包的信息,否则它将显示为
Repo : installed
因此,因为cmake不是使用yum
安装的,所以您不能使用yum
删除它。
注意:您还可以看到版本号不同...
发布于 2019-11-14 14:37:51
如果你想要更新,之前不需要删除包。您可以直接执行更新命令:
yum update cmake
https://stackoverflow.com/questions/58850568
复制相似问题