How to install Code::Blocks on Ubuntu 20.04?
Last updated
Last updated
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.
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.
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.
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.
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.
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.