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

skipmailman=0

Deprecated scripts

/scripts/reinstallmailman
/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 ##
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install atop -y

Useful URLs:

https://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/

https://www.tecmint.com/how-to-install-atop-to-monitor-logging-activity-of-linux-system-processes/Read the rest

Update curl on Centos to the latest version

Find the latest version under the following link:

http://curl.haxx.se/download/?C=M;O=D

For instance curl-7.46.0 version

Download and install it

cd /usr/local/src/
curl http://curl.haxx.se/download/curl-7.46.0.tar.gz | tar xvz
cd curl-7.46.0/
./configure && make && make install
curl -V
Read the rest