行业网站建站,钻井网站建设,企业网站建设定制开发,郑州建设网站有哪些参考链接
cmake升级、更新#xff08;ubuntu18.04#xff09;-CSDN博客
升级cmake操作说明
下载链接
Download CMake
下载版本 下载软件包
cmake-3.30.3-linux-x86_64.tar.gz
拷贝软件包到虚拟机 cp /var/run/vmblock-fuse/blockdir/jrY8KS/cmake-3.29.8-linux-x86_64…参考链接
cmake升级、更新ubuntu18.04-CSDN博客
升级cmake操作说明
下载链接
Download CMake
下载版本 下载软件包
cmake-3.30.3-linux-x86_64.tar.gz
拷贝软件包到虚拟机 cp /var/run/vmblock-fuse/blockdir/jrY8KS/cmake-3.29.8-linux-x86_64.tar.gz .
解压软件包
tar -xvf cmake-3.29.8-linux-x86_64.tar.gz
创建软链接
ln -sf /opt/cmake-3.29.8-linux-x86_64/bin/* /usr/bin/ 注意 需要绝对路径
查看cmake版本
rootw1804-virtual-machine:/opt# cmake --version
cmake version 3.29.8CMake suite maintained and supported by Kitware (kitware.com/cmake).
还原系统cmake操作说明
卸载cmake
apt-get remove cmake
rootw1804-virtual-machine:/opt# apt-get remove cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:cmake-data librhash0 libuv1
Use apt autoremove to remove them.
The following packages will be REMOVED:cmake
0 upgraded, 0 newly installed, 1 to remove and 300 not upgraded.
After this operation, 17,5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 190833 files and directories currently installed.)
Removing cmake (3.10.2-1ubuntu2.18.04.2) ...
Processing triggers for man-db (2.8.3-2) ...重新安装 apt-get install cmake
rootw1804-virtual-machine:/opt# apt-get install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:cmake-doc ninja-build
The following NEW packages will be installed:cmake
0 upgraded, 1 newly installed, 0 to remove and 300 not upgraded.
Need to get 0 B/3 152 kB of archives.
After this operation, 17,5 MB of additional disk space will be used.
Selecting previously unselected package cmake.
(Reading database ... 190821 files and directories currently installed.)
Preparing to unpack .../cmake_3.10.2-1ubuntu2.18.04.2_amd64.deb ...
Unpacking cmake (3.10.2-1ubuntu2.18.04.2) ...
Setting up cmake (3.10.2-1ubuntu2.18.04.2) ...
Processing triggers for man-db (2.8.3-2) ...查看cmake版本
cmake --version
rootw1804-virtual-machine:/opt# cmake --version
cmake version 3.10.2CMake suite maintained and supported by Kitware (kitware.com/cmake).