• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for July 2019

“yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL

by admin

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 […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

How To Enable PHP 7.0 And httpd24 On Oracle Linux 7

by admin

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: # […]

Filed Under: CentOS/RHEL 7, Linux, OEL 7

CentOS/RHEL: How to find the package with a missing file using YUM

by admin

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 […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

How to Access Docker Container’s Network Namespace from Host

by admin

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 […]

Filed Under: DevOps, Docker

How To Change The Time Zone For A Docker Container

by admin

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 […]

Filed Under: DevOps, Docker

Understanding Ksplice Effective Kernel Version

by admin

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 […]

Filed Under: Linux, OEL 6, OEL 7

XFS Filesystem Gets Mounted As Readonly (CentOS/RHEL)

by admin

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 […]

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6

How To Create a Local Yum Repository for MySQL Enterprise Packages

by admin

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 […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, mysql, MySQL Cluster

How to Check the Size of the Yum Channels in Oracle Linux

by admin

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 […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

Yum Fails with “Error: database disk image is malformed” in /var/log/messages

by admin

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 […]

Filed Under: Linux

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright