Setup CentOS for coding
Setup CentOS for Developers
​CentOS is a Linux distribution that provides a free, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux (RHEL). In January 2014, CentOS announced the official joining with Red Hat while staying independent from RHEL under a new CentOS governing board.

Install basic development tools

The Development Tools package group provides the GNU Compiler Collection (GCC), GNU Debugger (GDB), and other related development tools.
1
$ # install Development Tools bundle
2
$ sudo yum group install "Development Tools"
Copied!

​

Install Git​

​Git is the most popular version control system on Linux. It is easy to use, amazingly fast, it’s very efficient with large projects, and it has an incredible branching system for non-linear development.
1
$ sudo yum install git
Copied!

​

Install Python3

By default, CentOS is not installing python3, but we can easily set up the installation.
1
$ sudo yum install python3
2
$
Copied!
And Python3 libraries for development
1
sudo yum install python3-devel
Copied!

​

Installing Apache​

Apache is available within CentOS’s default software repositories, which means you can install it with the yum package manager.
1
$ sudo yum install httpd
Copied!
Apache does not automatically start on CentOS once the installation completes. You will need to start the Apache process manually:
1
$ # this cmd will start the server
2
$ sudo systemctl start httpd
3
$
4
$ # test server status
5
$ sudo systemctl status httpd
6
$
7
$ # access the default page with `lynx`
8
$ sudo yum install lynx
9
$
10
$ lynx http://localhost
Copied!

​

Installing Node.js​

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser.
1
$ sudo yum install nodejs
2
$
3
$ # check the version
4
$ node --version
Copied!

​

Installing Yarn​

The yarn is an advanced package management software for Node.js applications. It is a fast, secure, and reliable alternative that any other Nodejs package manager.
1
$ sudo npm install yarn -g
2
$
3
$ # check the version
4
$ yarn -v
Copied!

​

Installing Container Tools

RHEL 8 does not officially support Docker; in this section, we will show how to install the new set of container tools as well as the old lady, docker package. The docker package is replaced by the Container Tools module, which consists of tools such as Podman, Buildah, Skope, and several others.
1
$ dnf module install -y container-tools
Copied!

​

Install Docker

Now install docker from the official repositories by running the following commands. Here, the yum-utils package provides the yum-config-manager utility.
1
$ dnf install yum-utils
2
$ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3
$ dnf install containerd.io docker-ce docker-ce-cli
Copied!

​

Installation of DNF

For packages installation, we can use dnf tool instead of the traditional yum package manager. DNF is same as Yum that installs, updates and removes packages on RPM bas4ed Linux systems. DNF is introduced for improving the bottlenecks of Yum such as performance, Memory usages, Dependency resolution, speed, and some other factors.
To install DNF on RHEL/CentOS 7 systems, you need to set up and enable epel Yum repository before installing DNF
1
$ # Initial Setup
2
$ yum install epel-release
3
$
4
$ # Install `DNF` tool
5
$ yum install dnf
6
$
7
$ # test the installation
8
$ dnf –help
Copied!
Last modified 5mo ago