Installation of Code::Blocks on GNU/Linux

Note

This page presents the two easiest ways to install Code::Blocks on your GNU/Linux system. Note, however, that using those methods, the installed version of Code::Blocks may not be up to date. If this is the case, you may want to follow the other methods, presented in the next pages.

If your system is Debian-based and your software manager does not provide the latest version of Code::Blocks, I recommend installing Code::Blocks by following the steps presented in the next page.

From the graphical package manager

You may be able to directly install Code::Blocks using the software manager provided by your GNU/Linux distribution. The graphical software manager the distribution Linux Mint uses is Synaptic. The following steps are shown using a machine running Linux Mint. Your system may use a different system manager, but the steps should be similar.

Code::Blocks is now installed.

From the package manager (Using the terminal)

The following steps works only if your distribution is Debian-based, because the Debian package management utility apt-get is used. It should work with other non Debian-based distributions, but in that case, the package name may vary and the package manager of the system should be used (Instead of apt-get).

1. Open a terminal and enter the following commands: sudo apt-get update.

2. Enter the following command: sudo apt-get install codeblocks.

3. Enter the command: sudo apt-get install -f (Enter Y at the question).

4. Enter the command: sudo apt-get install codeblocks, again (Enter Y at the question).

Code::blocks should now be installed.

The first time Code::Blocks is launched, the following window should appear:

Simply click on the button OK.