How to find out the previous kernel version on CentOS after a reboot

To find out the previous kernel version on CentOS after a reboot, you can use the rpm command to query the package database. Here are the steps:

Open a terminal or SSH session to your CentOS server.

Type the following command to list all installed kernels:

rpm -qa | grep "kernel-[0-9]"

This will output a list of all installed kernel packages.… Read the rest

How to install/reinstall mailman on cPanel server

Check Tweak Settings, should be ‘0’

cat /var/cpanel/cpanel.config |grep skipmailman


Deprecated scripts

/usr/local/cpanel/bin/mailman-install --force

Deprecated scripts:

/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.mailman installed
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

The latest way to reinstall mailman on cPanel server:

rpm -e --nodeps cpanel-mailman
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

Run upcp:

/scripts/upcp --force
systemctl start mailman.service
Read the rest

How to install atop

Enable epel repository if needed

## RHEL/CentOS 7 64-Bit ##
rpm -ivh epel-release-latest-7.noarch.rpm
yum install atop -y

Useful URLs: the rest

Update curl on Centos to the latest version

Find the latest version under the following link:;O=D

For instance curl-7.46.0 version

Download and install it

cd /usr/local/src/
curl | tar xvz
cd curl-7.46.0/
./configure && make && make install
curl -V
Read the rest