The Problem “Yum clean all” not clearing the yum cache information under /var/cache/yum for orcle Linux server which use Oracle public yum repository or local yum repository. # yum repolist Loaded plugins: refresh-packagekit, security, ulninfo public_ol6_UEK_latest | 1.2 kB 00:00 public_ol6_UEK_latest/primary | 26 MB 00:04 public_ol6_UEK_latest 554/554 public_ol6_latest | 1.4 kB 00:00 public_ol6_latest/primary | 58 […]
Archives for July 2019
How To Enable PHP 7.0 And httpd24 On Oracle Linux 7
PHP7 is available and supported on OL7. The YUM distribution channel must be manually enabled for the RPM packages to be available: 1. Edit /etc/yum.repos.d/public-yum-ol7.repo file and make sure you enable “ol7_software_collections” repo. [ol7_software_collections] name=Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64) baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 2. Install PHP7.0 and http24: # […]
CentOS/RHEL: How to find the package with a missing file using YUM
Question: How to find the package with a missing file in the system using YUM? This how-to is also applicable when the file is not missing and is already installed, but for some reason, it is required to know the package that provides it. The YUM package manager tool uses repositories to retrieve information and […]
How to Access Docker Container’s Network Namespace from Host
This post is to illustrate how to access the docker container’s network namespace. 1. Identify the docker container id you want to access and run below command as root on host. # docker ps 2. Get docker container’s PID: # pid=$(docker inspect -f ‘{{.State.Pid}}’ ${container_id}) 3. Create netns directory: # mkdir -p /var/run/netns/ 4. Create […]
How To Change The Time Zone For A Docker Container
The goal of this post is to set up the timezone on the container to match the same timezone on the Docker server, this will allow users to see the same time in both instances (Docker Server and Container). Most of the time Containers do not use the same time as the Docker server, this […]
Understanding Ksplice Effective Kernel Version
This post will explain the meaning behind the output of the “ksplice kernel uname” (Ksplice Enhanced client) or “uptrack-uname” (Ksplice Uptrack client) command and how to interpret Ksplice’s effective kernel version string. The effective kernel version that is reported by Ksplice when running the command “ksplice kernel uname -r” reflects the security position of the […]
XFS Filesystem Gets Mounted As Readonly (CentOS/RHEL)
The Problem Command ‘df’ shows statistics but ‘ls -ld’ fails below: # df … /dev/mapper/vgapp-appsvol 419221508 15095588 404125920 4% /lapps/app # ls -l /lapps/apps ls: cannot access /lapps/app: Input/output error The Solution Disk failure cases input/output operation stopped, so filesystem is re-mounted as read-only. This is an expected behavior of the kernel to mount a […]
How To Create a Local Yum Repository for MySQL Enterprise Packages
1. Obtaining the yum repo tarball 1. Log on to support.oracle.com using your Oracle SSO ID. 2. Click on the “Patches & Updates” tab. 3. Click the “Product or Family (Advanced)” button to search by product. 4. Type “MySQL Server” for the Product. 5. Select the desired version in the “Release” pulldown. 6. Select “Linux […]
How to Check the Size of the Yum Channels in Oracle Linux
Question: How to find out how large a yum channel repository is, to know how much data the channel will sync to a local yum repository? To see the actual size of the repository use either the “yum repolist -v” or “yum repoinfo” command. 1. Example for checking the size of latest OL7 yum channel […]
Yum Fails with “Error: database disk image is malformed” in /var/log/messages
The Problem Unable to execute any command related to yum and below error messages found in /var/log/messages file. For example: # yum update Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock Loading support for kernel ABI Setting up Install Process Ol6_latest | 3.0 kB 00:00 Ol6_latest/primary_db | 78 MB 00:10 [Errno […]