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 MB 00:04 public_ol6_latest 36051/36051 repo id repo name … [Read more...] about “yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL
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 … [Read more...] about How To Enable PHP 7.0 And httpd24 On Oracle Linux 7
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 download packages. The repositories configurations are at /etc/yum.repos.d/*.repo files and in these files it can be multiple repositories enabled and others disabled. 1. The sub … [Read more...] about CentOS/RHEL: How to find the package with a missing file using YUM
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 the name space softlink: # ln -sfT /proc/$pid/ns/net /var/run/netns/[container_id] 5. Run ip netns command to access this name … [Read more...] about How to Access Docker Container’s Network Namespace from Host
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 post will show how to configure this. This is how this looks like before making the changes. Container Time: # docker exec 15c0c99b5c65 date Wed Aug 23 15:40:24 UTC 2019 Docker Server Time: # date Wed … [Read more...] about How To Change The Time Zone For A Docker Container
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 kernel that is running based on the patches that have been applied by Ksplice. This effective kernel version usually differs … [Read more...] about Understanding Ksplice Effective Kernel Version
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 filesystem as read-only to avoid further file system corruption leading to inconsistencies, whenever … [Read more...] about XFS Filesystem Gets Mounted As Readonly (CentOS/RHEL)
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 x86-64" in the "Platform" pulldown. 7. Select "Description" in the first "and" pulldown under "Platform". 8. Select "contains" in the search type … [Read more...] about How To Create a Local Yum Repository for MySQL Enterprise Packages
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 repoinfo ol7_latest Loaded plugins: langpacks, ulninfo Repo-id : ol7_latest/x86_64 Repo-name : Oracle Linux 7Server Latest (x86_64) Repo-status : enabled Repo-updated : Fri Jan 25 … [Read more...] about How to Check the Size of the Yum Channels in Oracle Linux
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 2] No such file or directory: '/var/cache/yum/x86_64/6Server/Ol6_latest/primary.sqlite.bz2' Loaded … [Read more...] about Yum Fails with “Error: database disk image is malformed” in /var/log/messages