Operating System: Oracle Linux 8.7 64 Bit UEK
Step 1: First stop the virtual box and mount the ISO image of the Linux software to virtual box as per the below screens.
Virtual Box ---> Setting --> Storage --> Controller IDE (1st + --> Leave empty (two times ==> 1 for actual 58 GB disk and 2nd for ISO image) ---> Click on 1st empty and add actual virtual image of 58 GB---> Click on 2nd empty and add ISO image of setup and click OK to continue and start the Virtual Box.
[oracle@primary Packages]$ df -Th /run
/dev/sr0 iso9660 59M 59M 0 100% /run/media/oracle/VBox_GAs_6.1.22
/dev/sr1 iso9660 9.5G 9.5G 0 100% /run/media/oracle/RHEL-8-4-0-BaseOS-x86_64
Go to the directory "/media/sf_Software/Linux/Oracle_Linux_8.7" where you mounted the mount-point as shared folder.
/dev/sr0 iso9660 59M 59M 0 100% /run/media/oracle/VBox_GAs_6.1.22
/dev/sr1 iso9660 9.5G 9.5G 0 100% /run/media/oracle/RHEL-8-4-0-BaseOS-x86_64
Go to the directory "/media/sf_Software/Linux/Oracle_Linux_8.7" where you mounted the mount-point as shared folder.
[root@orahost Oracle_Linux_8.7]# pwd
/media/sf_Software/Linux/Oracle_Linux_8.7
[root@orahost Oracle_Linux_8.7]# ls -ltr
-rwxrwx--- 1 root vboxsf 3169 Nov 11 16:16 RPM-GPG-KEY-oracle
-rwxrwx--- 1 root vboxsf 3169 Nov 11 16:16 RPM-GPG-KEY
-rwxrwx--- 1 root vboxsf 3760458 Nov 11 16:16 OL8-RELNOTES8-7.zip
-rwxrwx--- 1 root vboxsf 91 Nov 11 16:16 media.repo --------> This file needs to be copied
-rwxrwx--- 1 root vboxsf 18390 Nov 11 16:16 GPL
-rwxrwx--- 1 root vboxsf 1437 Nov 11 16:16 extra_files.json
-rwxrwx--- 1 root vboxsf 8806 Nov 11 16:16 EULA
drwxrwx--- 1 root vboxsf 0 Nov 11 16:23 BaseOS
drwxrwx--- 1 root vboxsf 0 Nov 11 16:23 AppStream
drwxrwx--- 1 root vboxsf 4096 Nov 11 16:40 isolinux
drwxrwx--- 1 root vboxsf 0 Nov 11 16:40 EFI
drwxrwx--- 1 root vboxsf 0 Nov 11 16:41 images
-rwxrwx--- 1 root vboxsf 3099 Nov 11 16:48 TRANS.TBL
-rwxrwx--- 1 root vboxsf 12062818304 May 1 09:12 V1032420-01.iso
[root@orahost Oracle_Linux_8.7]# cp media.repo /etc/yum.repos.d/oel8iso.repo
[root@orahost Oracle_Linux_8.7]# cd /etc/yum.repos.d/
[root@orahost Oracle_Linux_8.7]# chmod 644 oel8iso.repo
[root@orahost yum.repos.d]# ls -ltr
-rw-r--r--. 1 root root 3660 Nov 8 10:55 oracle-linux-ol8.repo_bkp
-rw-r--r--. 1 root root 243 Nov 9 20:43 virt-ol8.repo
-rw-r--r-- 1 root root 310 May 4 06:00 oel8iso.repo
-rw-r--r--. 1 root root 941 May 4 2023 uek-ol8.repo -----------------> Refer this file since this is UEK
Step 2: Go to the "/etc/yum.repos.d" location and view the contents of the oel8iso.repo and uek-ol8.repo file.
[root@orahost Oracle_Linux_8.7]# cat oel8iso.repo
[InstallMedia]
name=Oracle Linux 8.7.0
mediaid=None
metadata_expire=-1
gpgcheck=0
cost=500
[root@orahost yum.repos.d]# cat uek-ol8.repo
[ol8_UEKR7]
name=Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/UEKR7/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol8_UEKR6]
name=Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/UEKR6/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol8_UEKR7_RDMA]
name=Oracle Linux 8 UEK7 RDMA ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/UEKR7/RDMA/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol8_UEKR6_RDMA]
name=Oracle Linux 8 UEK6 RDMA ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/UEKR6/RDMA/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
Step 3: Modify the contents of the file "oel8iso.repo" by copying name parameter value from file "uek-ol8.repo" and it should be like below.
[root@orahost yum.repos.d]# cat oel8iso.repo
#[InstallMedia]
#name=Oracle Linux 8.7.0
[ol8_UEKR7]
name=Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux $releasever ($basearch)
mediaid=None
metadata_expire=-1
gpgcheck=1
cost=500
baseurl=file:///run/media/root/OL-8-7-0-BaseOS-x86_64/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
where, baseurl is the BaseOS location of your ISO image file. You can go to the location "/run/media/root/OL-8-7-0-BaseOS-x86_64/BaseOS" and check the files.
Also, you can check the gpgkey value by listing "/etc/pki/rpm-gpg/RPM-GPG-KEY-oracle".
If you failed to give the correct directory names or key names then you will face below error message.
In the below file, I passed incorrect value for the variable "name" caused error message.
[root@orahost yum.repos.d]# cat oel8iso.repo
#[InstallMedia]
#name=Oracle Linux 8.7.0
[ol8_UEKR7]
name=Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux $releasever ($basearch)
mediaid=None
metadata_expire=-1
gpgcheck=1
cost=500
baseurl=file:///run/media/root/OL-8-7-0-BaseOS-x86_64/BaseOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
[root@orahost Packages]# yum install gli*
Latest Unbreakable Enterprise Kernel Release 7 for Ora 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'ol8_UEKR7':
- Curl error (6): Couldn't resolve host name for https://yum.oracle.com/repo/OracleLinux/OL8/UEKR7/x86_64/repodata/repomd.xml [Could not resolve host: yum.oracle.com]
Error: Failed to download metadata for repo 'ol8_UEKR7': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Step 4: Now you have set-up the local yum repository. Its time to execute yum commands to install missing RPM packages.
[root@orahost yum.repos.d]# yum install libnsl.so.1
Repository ol8_UEKR7 is listed more than once in the configuration
Latest Unbreakable Enterprise Kernel Release 7 for Ora 76 MB/s | 3.4 MB 00:00
Last metadata expiration check: 0:00:01 ago on Thu 04 May 2023 06:01:06 AM EDT.
Dependencies resolved.
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
libnsl i686 2.28-211.0.1.el8 ol8_UEKR7 109 k
Installing dependencies:
glibc i686 2.28-211.0.1.el8 ol8_UEKR7 2.0 M
Installing weak dependencies:
glibc-gconv-extra i686 2.28-211.0.1.el8 ol8_UEKR7 1.6 M
Transaction Summary
=======================================================================================
Install 3 Packages
Total size: 3.7 M
Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
Latest Unbreakable Enterprise Kernel Release 7 for Ora 3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0xAD986DA3:
Userid : "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>"
Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : glibc-gconv-extra-2.28-211.0.1.el8.i686 1/3
Running scriptlet: glibc-gconv-extra-2.28-211.0.1.el8.i686 1/3
Running scriptlet: glibc-2.28-211.0.1.el8.i686 2/3
Installing : glibc-2.28-211.0.1.el8.i686 2/3
Running scriptlet: glibc-2.28-211.0.1.el8.i686 2/3
Installing : libnsl-2.28-211.0.1.el8.i686 3/3
Running scriptlet: libnsl-2.28-211.0.1.el8.i686 3/3
Verifying : glibc-2.28-211.0.1.el8.i686 1/3
Verifying : glibc-gconv-extra-2.28-211.0.1.el8.i686 2/3
Verifying : libnsl-2.28-211.0.1.el8.i686 3/3
Installed:
glibc-2.28-211.0.1.el8.i686 glibc-gconv-extra-2.28-211.0.1.el8.i686
libnsl-2.28-211.0.1.el8.i686
Complete!
[root@orahost yum.repos.d]#
Thanks for reading this post ! Please comment if you like this post ! Click on FOLLOW to get next blog updates !
Thank you for your comment !