当前位置: 首页 > news >正文

【ubuntu18.04】ubuntu18.04升级cmake-3.29.8及还原系统自带cmake操作说明

参考链接

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版本

root@w1804-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

root@w1804-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

root@w1804-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

root@w1804-virtual-machine:/opt# cmake --version
cmake version 3.10.2CMake suite maintained and supported by Kitware (kitware.com/cmake).

http://www.lryc.cn/news/466810.html

相关文章:

  • 利用Docker搭建一套Mycat2+MySQL8一主一从、读写分离的最简单集群(保姆教程)
  • 算法——python实现堆排序
  • uniapp-components(封装组件)
  • avue-crud组件,输入框回车搜索问题
  • STM32F407ZGT6定时器相关测试
  • 群晖通过 Docker 安装 GitLab
  • 1.Node.js环境搭建(windows)
  • 链上相遇,节点之间的悸动与牵连
  • 一些简单的编程题(Java与C语言)
  • java计算机毕设课设—愤怒小鸟游戏(附源码、文章、相关截图、部署视频)
  • 【ARM】MDK-Flex服务管理软件使用说明
  • 【H2O2|全栈】WPS/Office系列有哪些好用的快捷方式?
  • 对比学习)
  • 第十六届蓝桥杯嵌入式真题
  • 音频转码常用命令
  • INNER JOIN、LEFT JOIN 和 RIGHT JOIN有什么区别?什么是自连接?
  • 原型模式具体和直接调用构造函数创建实例的区别
  • MySQL 数据备份与恢复指南
  • NGINX 保护 Web 应用安全之基于 IP 地址的访问
  • 数据结构——顺序表的基本操作
  • 智能去毛刺:2D视觉引导机器人如何重塑制造业未来
  • 计算机系统的层次
  • 一起搭WPF架构之LiveCharts.Wpf的简单了解与安装
  • 深度学习杂乱知识
  • 本地编译运行Thingsboard-gateway之python版本——modbus数据采集
  • 京东笔试题
  • URP学习(一)
  • Linux中修改和查看Redis的内存大小
  • uniapp中的页面跳转
  • Redis|延迟双删策略的优点和缺点是什么?