0

This question already has an answer here:

smaash@smaash-Default-string:~$ cmake --version
cmake version 3.5.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

smaash@smaash-Default-string:~$ sudo apt 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 libjsoncpp1 snapd-login-service
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cmake
0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded.
After this operation, 14.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 214443 files and directories currently installed.)
Removing cmake (3.5.1-1ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...

smaash@smaash-Default-string:~$ sudo apt purge 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 libjsoncpp1 snapd-login-service
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cmake*
0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 214430 files and directories currently installed.)
Removing cmake (3.5.1-1ubuntu3) ...
Purging configuration files for cmake (3.5.1-1ubuntu3) ...


smaash@smaash-Default-string:~$ sudo apt-get install cmake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  snapd-login-service
Use 'sudo apt autoremove' to remove it.
Suggested packages:
  codeblocks eclipse ninja-build
The following NEW packages will be installed:
  cmake
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B/2,623 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Selecting previously unselected package cmake.
(Reading database ... 214431 files and directories currently installed.)
Preparing to unpack .../cmake_3.5.1-1ubuntu3_amd64.deb ...
Unpacking cmake (3.5.1-1ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up cmake (3.5.1-1ubuntu3) ...

marked as duplicate by Eliah Kagan, Zanna, karel, Kulfy, Fabby Jul 23 at 20:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    What version of Ubuntu are you using? what version of cnake are you expecting to be installed? – steeldriver Jul 23 at 14:34

Browse other questions tagged or ask your own question.