RPM is an open-source Package Manager on Linux Like Operating systems (RHEL, CentOS & Fedora).RPM command is used to build, install, query, verify, update and erase individual software packages. RPM utility only works with packages that are built on .rpm format. An RPM file contains not only the software files but also in-depth information about […]
Oracle Linux
How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7
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. […]
How to configure EPEL repository in OEL 7
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 […]
“The requested URL returned error: 403 Forbidden” – yum update error
The Problem CentOS/RHEL/OEL 6 server’s configured to use local yum server for updates are getting following errors at time of yum update. Downloading Packages: (1/5): kernel-2.6.32-754.12.1.el6.x86_64.rpm | 32 MB 00:01 (2/5): kernel-headers-2.6.32-754.12.1.el6.x86_64.rpm | 4.6 MB 00:00 (3/5): kernel-uek-4.1.12-124.26.10.el6uek.x86_64.rpm | 42 MB 00:00 (4/5): kernel-uek-firmware-4.1.12-124.26.10.el6uek.noarch.rpm | 2.5 MB 00:00 http://localyum/yum/OracleLinux/OL6/latest/x86_64/getPackage/oraclelinux-release-el6-1.0-6.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 – […]
“Metadata File Does Not Match Checksum” Issue When Yum Installs or Updates Package
The Problem Scenario 1: The user is unable to perform “yum install oracle-rdbms-server-11gR2-preinstall”. The yum tries to download the latest metadata (“http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz” ) and rejects it with the error message “[Errno -1] Metadata file does not match checksum”. Upon this, yum tries the next mirror where it encounters the same error and goes to the […]
How to install/get packages from Oracle EPEL Repository on OEL 7
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 […]
“yum clean all” not clearing yum repository cache in CentOS/RHEL/OEL
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 […]
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: # […]
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 […]
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 […]