CentOS 8

Set Up Automatic Updates for CentOS 8

DNF-automatic RPM package. The package provides a DNF component that starts automatically.

dnf install -y dnf-automatic

Configuring the dnf-automatic updates.

nano /etc/dnf/automatic.conf

Configuration this setting:

apply_updates = yes

Finally, you can now run dnf-automatic, execute the following command to schedule DNF automatic updates for your CentOS 8

systemctl enable --now dnf-automatic.timer

Stop and Disable Firewall on CentOS 8

systemctl stop firewalld
systemctl disable firewalld

Disable SELinux on CentOS 7

change SELINUX=enforcing to SELINUX=disabled

sudo nano /etc/selinux/config

reboot.

Check status

sestatus

Disable IPv6 on CentOS 8

Append below lines in /etc/sysctl.conf:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

To make the settings affective, execute :

sysctl -p

Python ⅔ Installation on CentOS 8

Python 2

dnf install python2

Python 3

dnf install python3

Set Default Python Version

Python 2

alternatives --set python /usr/bin/python2

Python 3

alternatives --set python /usr/bin/python3

Remove the unversioned python

alternatives --auto python

Docker CE Installation on CentOS 8

dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y docker-ce --nobest
systemctl start docker
systemctl enable docker

NodeJS and NPM Stable Installation

dnf install -y nodejs
npm install -g n
n stable
node -v

Htop Installation CentOS 8

dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf update
dnf install -y htop

Numbers of Kernels to Keep

Mininum is 2

dnf install -y dnf-utils

Configure yum to auto-remove old kernels

Edit /etc/yum.conf Set the limit to desired value

installonly_limit=2

Remove virbr0 and lxcbr0 Interfaces

chkconfig libvirtd off

Comments