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 Development Toolsβ
The Development Tools
package group provides the GNU Compiler Collection (GCC), GNU Debugger (GDB), and other related development tools.
$ # install Development Tools bundle
$ sudo yum group install "Development Tools"
β 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.
$ sudo yum install git
β Install Python3β
By default, CentOS is not installing python3, but we can easily set up the installation.
$ sudo yum install python3
$
And Python3 libraries for development
sudo yum install python3-devel
β Installing Apacheβ
Apache is available within CentOSβs default software repositories, which means you can install it with the yum
package manager.
$ sudo yum install httpd
Apache does not automatically start on CentOS once the installation completes. You will need to start the Apache process manually:
$ # this cmd will start the server
$ sudo systemctl start httpd
$
$ # test server status
$ sudo systemctl status httpd
$
$ # access the default page with `lynx`
$ sudo yum install lynx
$
$ lynx http://localhost
β Installing Node.jsβ
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser.
$ sudo yum install nodejs
$
$ # check the version
$ node --version
β 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.
$ sudo npm install yarn -g
$
$ # check the version
$ yarn -v
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.
$ dnf module install -y container-tools
β 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.
$ dnf install yum-utils
$ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$ dnf install containerd.io docker-ce docker-ce-cli
β 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
$ # Initial Setup
$ yum install epel-release
$
$ # Install `DNF` tool
$ yum install dnf
$
$ # test the installation
$ dnf βhelp
β Resourcesβ
- π Access AppSeed for more starters and support
- π Deploy Projects on Aws, Azure and DO via DeployPRO
- π Create landing pages with Simpllo, an open-source site builder
- π Build apps with Django App Generator (free service)