This post will help to change the network interface name using prefixdevname utility in CentOS/RHEL 8 systems. Installation and configuration 1. Install the required package using dnf utility: # dnf install prefixdevname 2. Append the net.ifnames.prefix=[ABCD] using grubby command: (ABCD to replaced with own prefix, eg: net). # grubby –update-kernel=$(grubby –default-kernel) –args=”net.ifnames.prefix=net” 3. Reboot the […]
Archives for November 2019
How to re-create the yum cache (force a fetch of the cache data) from enabled repositories in CentOS/RHEL
This post briefly outlines how it possible to re-create the yum cache, or said in another way, force a fetch of the cache data from the enabled yum repositories. The enabled yum repositories are the ones in the following file /etc/yum.conf or in the following folder /etc/yum.repos.d that have their “enabled” setting to “1“, e.g. […]
How to Create yum Repository in CentOS/RHEL
1. Create a directory for you local repository, e.g. /home/mypackage_dir/repository. Move the RPMs into that directory. # mkdir /home/mypackage_dir/repository # cp /media/packages/* /home/mypackage_dir/repo 2. Fix some ownership and filesystem permissions: # chown -R root:root /home/mypackage_dir/repo 3. Install the createrepo package if not installed yet, and run: # createrepo /home/mypackage_dir/repo # chmod -R o-w+r /home/mypackage_dir/repo 4. […]
How to Disable NetworkManager in CentOS/RHEL 8
Although NetworkManager is the default tool for configuring and managing the network services on CentOS/RHEL 8, there are situations where it may be necessary to permanently disable NetworkManager, and use alternative methods to configure and manage the network. This document describes how to permanently disable NetworkManager on CentOS/RHEL 8. Note: Use of “networks-scripts” is deprecated […]