How to install Code::Blocks on Ubuntu 20.04?

Overview

Code::Blocks is a very popular open-source IDE (Integrated Development Environment) for C and C++ programming languages, It is also beginner friendly and preferred by new programmers using C language. In this tutorial we will learn how to install Code::Blocks on Ubuntu server using the official Ubuntu repository through CLI.

Prerequisites

There are certain prerequisites that need to be met before you begin.

  • An Ubuntu server with version 20.04 or later installed.

  • Root access via sudo user.

Get Started

Step 1: Update the package list

  • Open a terminal window and login to your system/server. Type the given command to update all dependencies.

  • The sudo apt update command updates the list of packages that are available for installation from the Ubuntu repositories. This is important to do before installing any new packages, as it ensures that you are installing the latest versions of the packages.

sudo apt update

Step 2: Install Code::Blocks IDE

  • Type the following command to start installation.

  • The sudo apt install codeblocks command installs the Code::Blocks package. This package contains all of the files that are needed to run Code::Blocks, including the IDE itself, as well as a number of plugins and extensions.

sudo apt install codeblocks

Step 3: Launch Code::Blocks IDE

  • Type the below command to launch the IDE application.

  • The codeblocks command launches Code::Blocks IDE and then you can start using it to write your program code and run it.

codeblocks

Conclusion

In this tutorial, we illustrated how to install Code::Blocks on your system. If Code::Blocks window opens, then you have successfully installed the IDE on your server/system.

Last updated