• 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

OEL 7

How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7

by admin

Question: How to Rebuild Grub on Linux servers with MSDOS Partition type. (proc) (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) 1. Execute the following commands in Grub prompt to set the root device and to load the boot image and initialize boot loader. > set root=(hd0,msdos1) > linux16 /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/sda5 > initrd16 /initramfs-3.10.0-327.el7.x86_64.img Then boot the server. […]

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

How to configure EPEL repository in OEL 7

by admin

Question: How to install/get packages from EPEL Repository on OEL 7? 1. Create a repo file like /etc/yum/repos.d/epel-yum-ol7.repo. For example: # cat /etc/yum.repos.d/epel-yum-ol7.repo [ol7_epel] name=Oracle Linux $releasever EPEL ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 2. And then run “yum repolist” command to see if repository is in there. # yum repolist Loaded plugins: langpacks repo id […]

Filed Under: Linux, OEL 7

How to install/get packages from Oracle EPEL Repository on OEL 7

by admin

Question: How to install/get packages from Oracle EPEL Repository on OL7? 1. Create a repo file like /etc/yum/repos.d/epel-yum-ol7.repo. For example: # cat /etc/yum.repos.d/epel-yum-ol7.repo [ol7_epel] name=Oracle Linux $releasever EPEL ($basearch) baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1 2. And then run “yum repolist” command to see if repository is in there. # yum repolist Loaded plugins: langpacks repo id […]

Filed Under: Linux, OEL 7

“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

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

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

How to Change Timezone from CST To EST in CentOS/RHEL 7 Server

by admin

Question: How to change timezone in CentOS/RHEL 7 server from EST to CST. Follow the below steps to change the timezone to CST. (Execute the below commands as root user) 1. List all the available timezones using the below command: # timedatectl list-timezones 2. Locate the correct timezone you need that is in the central […]

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

rm: cannot remove ‘doc/by-app’: Function not implemented (CentOS/RHEL 7)

by admin

The Problem Some user directories cannot be deleted. For example: /root/.cache/doc/ directory /root/.cache/doc/by-app directory If we try to delete the directory, we get the below error: # rm -rf /root/.cache/doc/ rm: cannot remove ‘doc/by-app’: Function not implemented The Solution The directories are the mount points for /dev/fuse device. # mount –mount (ext, ocfs2, nfs, gfs, […]

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

SSH Login Stuck At : “debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP” CentOS/RHEL 7

by admin

The Problem Trying to login via SSH, the session hangs. Adding “-vvv” option, shows that it hangs with below messages: debug1: expecting SSH2_MSG_KEX_ECDH_REPLY The Solution MTU was set to 9000 : # ip add| grep -i eth0 2: eth0: mtu 9000 qdisc pfifo_fast state UP group default qlen 1000 inet x.x.x.x/24 brd x.x.x.x scope global […]

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

Next Page »

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright