Ubuntu

Install Code::Blocks on Ubuntu 20.04

Install Code::Blocks on Ubuntu 20.04

Introduction:

An Integrated Development Environment (IDE) provides extensive software development facilities to programmers. Code::Blocks is also one such open-source IDE that supports C, C++, and FORTRAN development. In today’s tutorial, we will share with you the quickest method of installing the Code::Blocks IDE on your Ubuntu 20.04 system.

Method of Installing Code::Blocks on Ubuntu 20.04:

For installing Code::Blocks on your Ubuntu 20.04 system, the following steps are to be performed:

Step # 1: Update your Ubuntu 20.04 System:

You first need to update your Ubuntu 20.04 system with the command shown below:

$ sudo apt update

Once this command is executed successfully, you will be able to install Code::Blocks on your Ubuntu 20.04 system.

Step # 2: Install Code::Blocks on your Ubuntu 20.04 System:

To install Code::Blocks on your Ubuntu 20.04 system, you have to execute the following command:

$ sudo apt install codeblocks

During the installation of Code::Blocks on your Ubuntu 20.04 system, you will be prompted to provide confirmation for this installation. This can be done by hitting the “Y” key followed by the Enter key as highlighted in the image shown below:

When all Code::Blocks will be successfully installed on your Ubuntu 20.04 system along with all of its required packages and dependencies, you will see the following success messages on your system’s terminal:

Step # 3: Launch Code::Blocks on your Ubuntu 20.04 System:

After the successful installation of Code::Blocks on your Ubuntu 20.04 system, you can launch it by searching for it in the Activities search bar as highlighted in the image shown below:

Doing this will cause the Compilers auto-detection window. From this window, you can carry on with the compiler that has been detected by default and click on the OK button as highlighted in the following image:

Finally, you will be able to enter the Code::Blocks environment within your Ubuntu 20.04 system as shown in the image below:

Method of Removing Code::Blocks from Ubuntu 20.04:

You can also remove the Code::Blocks IDE from your Ubuntu 20.04 system anytime by executing the following command in your terminal:

$ sudo apt-get purge codeblocks

This command will attempt to remove the Code::Blocks IDE from your Ubuntu 20.04 system along with its configuration files.

If you also want to get rid of all the unused packages and dependencies after uninstalling the Code::Blocks IDE at once, then you can execute the command shown below:

$ sudo apt-get autoremove

Through this command, you will manage to free up a lot of your system’s resources since it will delete all those packages and dependencies that are no longer needed after uninstalling the Code::Blocks IDE from your Ubuntu 20.04 system.

Conclusion:

The method that we have shared with you in this article will enable you to conveniently install the Code::Blocks IDE on your Ubuntu 20.04 system. After installing this IDE on your system, you can easily use it for C, C++, and FORTRAN development. You can even uninstall it anytime you want and that too very cleanly by following the uninstallation method of the Code::Blocks IDE.

Similar Posts