How To Install cmake-curses-gui on Ubuntu 20.04

In this tutorial we learn how to install cmake-curses-gui on Ubuntu 20.04. cmake-curses-gui is curses based user interface for CMake (ccmake)

Introduction

In this tutorial we learn how to install cmake-curses-gui on Ubuntu 20.04.

What is cmake-curses-gui

cmake-curses-gui is:

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.

This package provides the CMake curses interface. Project configuration settings may be specified interactively through this GUI. Brief instructions are provided at the bottom of the terminal when the program is running. The main executable file for this GUI is “ccmake”.

There are three methods to install cmake-curses-gui on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install cmake-curses-gui Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install cmake-curses-gui using apt-get by running the following command:

sudo apt-get -y install cmake-curses-gui

Install cmake-curses-gui Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cmake-curses-gui using apt by running the following command:

sudo apt -y install cmake-curses-gui

Install cmake-curses-gui Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install cmake-curses-gui using aptitude by running the following command:

sudo aptitude -y install cmake-curses-gui

How To Uninstall cmake-curses-gui on Ubuntu 20.04

To uninstall only the cmake-curses-gui package we can use the following command:

sudo apt-get remove cmake-curses-gui

Uninstall cmake-curses-gui And Its Dependencies

To uninstall cmake-curses-gui and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove cmake-curses-gui

Remove cmake-curses-gui Configurations and Data

To remove cmake-curses-gui configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge cmake-curses-gui

Remove cmake-curses-gui configuration, data, and all of its dependencies

We can use the following command to remove cmake-curses-gui configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cmake-curses-gui

References

Summary

In this tutorial we learn how to install cmake-curses-gui package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.