CentOS is a free Linux distribution built from Red Hat Enterprise Linux sources. It became a common choice for servers, labs and CI machines. Most of its commands also work on RHEL, Rocky Linux and AlmaLinux, because these distributions share the RPM package format and the yum or dnf package managers.
Most posts here are step-by-step install and configuration guides for CentOS 7 and RHEL. They cover setting up Nginx, building Git from source, and installing Java, Ansible and Microsoft SQL Server. Others walk through building a Kubernetes cluster with kubeadm and serving NFS storage to Kubernetes pods. There are also guides to yum itself, proxy settings for the shell and for yum, and monitoring Apache with New Relic Infrastructure. Troubleshooting posts include a fix for the Docker container-selinux dependency error.
These guides help sysadmins, DevOps engineers and students who need commands they can copy for an existing CentOS host or a practice lab. Much of the material targets CentOS 7, so check package names and repositories before you use it on newer releases.
Start here
- What is yum and use cases of yum? – Learn yum, the package manager behind almost every install step on CentOS.
- How to enable http Proxy Settings for Yum Command on RHEL / CentOS Servers? – Get yum working on servers that reach the internet only through a proxy.
- How to install and configure nginx in CentOS 7 / RHEL 7? – A full service setup: repo, systemd service and firewall-cmd ports for a web server.
- Git Install and Upgrade from Source in RHEL / CENTOS – Build a newer Git than the default repos provide by compiling it from source.
- Java Installation Guide in Linux & Windows – yum commands for installing several OpenJDK versions, which many DevOps tools need.
- Ansible Installation and Configuration Guide – Install and verify Ansible on CentOS and RHEL so you can start automating hosts.
- Setting up Kubernetes Clusters using Kubeadm Manual way in RHEL 7 / Centos7 – Build a kubeadm cluster by hand, including the swap, firewall and Docker prerequisites.
- Docker Error – Requires: container-selinux >= 2:2.74 – Fix a common dependency error when installing docker-ce on CentOS 7.
Latest CentOS articles
How to install Ansible in Centos 7/RHEL 7?
On CentOS 7 or RHEL 7 you can install Ansible in two ways: with yum from the EPEL repository, which gives you Ansible 2.9, or with pip…
Kibana 7.2 Install and configuration in RHEL 7/Centos
This guide covers installing Kibana 7.2 on RHEL 7 or CentOS 7 from the tar.gz archive, pointing it at an Elasticsearch cluster in kibana.yml, and starting it….
How to Install Oracle Database 19c on centos 7
This guide covers installing Oracle Database 19c on CentOS 7. You prepare the host with packages, kernel parameters, limits, an oracle user and directories, unzip the 19c…
Install and Configure Gerrit on CentOS and Ubuntu (MySQL + Apache Reverse Proxy)
A practical, step-by-step guide to installing Gerrit for code review on CentOS/RHEL and Ubuntu/Debian. Includes package command comparisons, setup workflow, Apache proxy configuration, and verification checks.
Ansible Installation and Configuration Guide
How to install ansible in Ubuntu? How to install ansible in Centos 7 / RHEL 7? How to install ansible in Centos 8 / RHEL 8? How…
Java Installation Guide in Linux & Windows
DOWNLOAD OPEN JDK & JRE JAVA PACKAGE FROM – https://jdk.java.net/archive/ Download and Install JDK/JRE 7 in Centos & RHEL Download and Install JDK/JRE 8 in Centos &…
Docker Tutorials: Installation and Configurations
Docker Installation in Centos/RHEL Method -1: How to install Docker Community Edition via YUM? Step 1 – Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data…
What is yum and use cases of yum?
What is yum? yum, short for Yellowdog Updater Modified, is a command-line package management utility for RPM (Red Hat Package Manager)-based Linux distributions, such as CentOS and…
Jenkins Tutorials: Jenkins Installation and Configuration Guide
Prerequisites of Jenkins Installation Minimum hardware requirements: Recommended hardware configuration for a small team: Comprehensive hardware recommendations: Software requirements: Supported Platforms & Cloud for Jenkins Java Installation…
Python Tutorials: Installing Python 3 on Linux, Centos, Ubuntu & Windows
Python 3 Installation in Ubuntu Default Versions of Python in CentOS Depending on when you’re reading this or what version you’re using, the version that you have…
Puppet Tutorials: Installing and Configure Puppet Server & Agent
Setting up Puppet Server in RHEL 8 / CENTOS 8 Setting up Puppet Agent in Linux Configure Puppet Agent with Server Rajesh KumarI’m Rajesh Kumar, a DevOps,…
How to Install Ruby on Linux
How to Install Ruby on CentOS 7 $ sudo yum install ruby$ ruby –version How to Install Ruby on Ubuntu $ sudo apt-get install ruby-full$ ruby –version…
GitLab Tutorials: Install self-managed GitLab Enterprise Version in Centos 7
URL – https://about.gitlab.com/install/ Step 1 – Install and configure the necessary dependencies Step 2 – Add the GitLab package repository and install the package Step 3 –…
Git Install and Upgrade from Source in RHEL / CENTOS
This tutorial will help you to install git 2.9.5 on CentOS/RHEL 7/6/5 and Fedora 26/25/24 operating systems using the source code. Step 1 – Install Required Packages…
How to install MSSQL in CENTOS 7?
Step 1 – Install SQL Server Step 2 – Install the SQL Server command-line tools Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering…
Linux Tutorials: How to enable EPEL repository in redhat/Centos?
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise…
How to install and configure snmp agent
How to install and configure snmp agent service in Ubuntu? SNMP Manager Server SNMP Agent Server Configuring the SNMP Manager Server Configuring the SNMP Agent Server Verifying…
How to install MySql and MaridaDb in Centos/RHEL?
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
How to install & configure Apache HTTPD server in Linux?
Install & configure Apache HTTPD server in Ubuntu? Install & configure Apache HTTPD server in Centos/Redhat 7? Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and…
Install & configure Zabbix Server & Frontend in Centos 7?
How to configure Zabbix Frontend with Server and Database? Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge,…
Installation Of Apache HTTP Web Server
How many ways you can install Apache? Installation Types1.Yum Based2.RPM Based3.Source code/ Tar ball Based Apache install on Centos 7 (Yum Base) 1.Check OS version # cat…
Preparing steps for LAMP Installation
Apache install on Centos 7 MYSQL(MariaDB) install on Centos 7 PHP install on Centos 7 Apache install on Centos 7 Check OS version # cat /etc/*release Install…
How to change the cgroup driver from cgroupfs systemd in docker?
How to change the cgroup driver from cgroupfs to systemd in RHEL/Centos? How to change the cgroup driver from cgroupfs to systemd in Ubuntu Rajesh KumarI’m Rajesh…
NTP install and configure in Linux, Centos, Ubuntu & RHEL
NTP install and configure in Centos & RHEL NTP install and configure in Ubuntu Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert…
How to monitor mysql using NewRelic with integration in Linux?
What MySQL integration collects and sends? NewRelic MySQL integration collects and sends inventory and metrics from your MySQL database to our platform, where you can see the…
How to install and configure nginx in CentOS 7 / RHEL 7?
Step 1 – Configure Nginx repo for CentOS 7 Step 2 – Configure Nginx repo for RHEL 7 Step 3 – Install Nginx on CentOS 7 &…
How to install datadog agent in centos rhel linux?
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
Newrelic Infrastructure – Apache2 Integration and Monitoring in Linux CentOS with Newrelic
Apache is an open source, cross-platform web server distributed under the Apache License version 2.0. Because of its durability, battle-tested SSL security, and dedicated user base, it’s…
Newrelic Infrastructure: Monitoring Linux Vitural Machine using Newrelic Agent
Step 1: Login to AWS Console Step 2: Create a LINUX Centos 7 VM How to create EC2 Instance Step 3: Login Centos VM. Help for Putty…
Shell Script to Install Ansible AWX in RHEL 7 and CENTOS 7
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
CentOS: frequently asked questions
Is CentOS still supported?
CentOS Linux 8 reached end of life at the end of 2021, and CentOS Linux 7 followed in June 2024. CentOS Stream continues as the upstream development branch of RHEL. Many teams have moved production servers to RHEL, Rocky Linux or AlmaLinux.
What is the difference between yum and dnf?
dnf replaced yum as the package manager from CentOS 8 and RHEL 8 onward. On those releases, yum points to dnf, so most everyday commands such as install, remove and update work the same way.
Do CentOS guides work on RHEL, Rocky Linux or AlmaLinux?
Usually yes, as long as the major version matches. These distributions share packages, repository layout and system tools. Repository names and subscription steps on RHEL may differ.
How do I open a port in the CentOS firewall?
Run firewall-cmd --permanent --add-port=80/tcp (or --add-service=http), then run firewall-cmd --reload to apply the change.
