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. […]
Archives for November 2019
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. […]
Granting All Privileges On All databases Except One Specific Table in MySQL
The post discusses a useful method to grant all privileges on all databases except one specific table to a user. MySQL does not support granting all privileges on all databases to a user then revoking all privileges on a specific table from that user. This produces an error saying there was no grant rule for […]
How to Disable Client Access Control in MySQL
You can disable the client access control in MySQL by telling the server not to read the grant tables and disable access control. Use the –skip-grant-tables option to do so. The –skip-grant-tables option has the following effects: When connected, the user has full privileges to do anything. This option disables account management statements such as […]
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 […]