Archives For November 30, 1999

Code Blocks IDE

Code::Blocks, open-source C, C++, and Fortran IDE, released version 20.03 a few days ago. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, and derivatives.

Code::Blocks 20.03 was available for a few days, though it’s not officially announced in its website. The Code::Blocks Developers Team PPA has made the packages for all current Ubuntu releases.

To install the new IDE version, open terminal either by pressing Ctrl+Alt+T on keyboard or by searching for ‘terminal’ from application menu. When it opens, do following steps one by one.

1.) Run command to add the PPA repository:

sudo add-apt-repository ppa:codeblocks-devs/release

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2.) If an old version was installed on your system, upgrade it via Software Updater:

or run commands one by one in terminal to install the IDE:

sudo apt update

sudo apt install codeblocks codeblocks-contrib

Once installed, launch it from your system application menu and enjoy!

Uninstall Code::Blocks

To remove the PPA repository, either go to Software & Updates -> Other Software, or run command in terminal:

sudo add-apt-repository --remove ppa:codeblocks-devs/release

And remove Code::Blocks if you want via command:

sudo apt remove --autoremove codeblocks codeblocks-contrib

Code::Blocks is an open-source, cross-platform, full-featured C, C++, and Fortran IDE designed to be very extensible and fully configurable.

While Ubuntu provides the old Code::Blocks 13.12 release in its universe repository, this tutorial shows you how to install the latest stable Code::Blocks 16.01 using PPA.

1. Add Code::Blocks Stable PPA, so you can receive future software updates along with system updates using Software Updater.

Open terminal from Unity Dash or by pressing Ctrl+Alt+T combination key. When it opens, paste the command below and hit run:

sudo add-apt-repository ppa:damien-moore/codeblocks-stable

Type in password (no visual feedback) when it asks and hit Enter to add PPA.

2. If you have Synaptic Package Manager, you can now launch it, search for and install the IDE after clicking Refresh.

Or just run the commands below one by one to do update and install the software:

sudo apt update

sudo apt install codeblocks

You may need to log out and log in back after installation to make it available in Unity Dash/App Launcher.

3. (Optional) To remove Code::Blocks IDE, use Synaptic Package Manager or run the command below in terminal:

sudo apt remove codeblocks && sudo apt autoremove

And the PPA can be removed via Software & Updates utility -> Other Software tab.