Oracle Linux 8 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Oracle Linux 8

Channel:
Subscribers:
5,740
Published on ● Video Link: https://www.youtube.com/watch?v=HKTo5sJixVw



Category:
Tutorial
Duration: 5:38
2 views
0


set up yum repository for locally-mounted DVD on Oracle Linux 8

In this video we are going to see how to create local DVD yum repository using the available Oracle linux 8 DVD iso file.
First step is we need to mount the DVD permanently in /media/mount_directory_name.
Second step is under /etc/yum.repos.d, we need to create one .repo or you can modify the available .repo file
and add the entries like this.

[LocalRepo] = Repository ID
name = Name of the repository
baseurl = Location of DVD Mount
Enabled = Enable repository
gpgcheck = Enable secure installation
gpgkey = Location of the key

steps:
mkdir /media/mount_directory_name
blkid -- copy uuid
edit /etc/fstab and add below line
UUID=XXXX-XX-XX-XX-XX-XX-XX /media/mount_directory_name iso9660 defaults 0 0
mount -a
systemctl daemon-reload
cd /etc/yum.repos.d/
vim local_dvd.repo and add below lines

[dvd-BaseOS]
name=DVD - BaseOS
baseurl=file:///media/mount_directory_name/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-XX

[dvd-AppStream]
name=DVD - AppStream
baseurl=file:///media/mount_directory_name/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-XX

execute below commands

mount -a
systemctl daemon-reload


After that save the .repo file and execute the below commands to check DVD yum repository is available or not.
yum clean all -- will clear the cache.
yum repolist enabled ---lists the repositories available after clearing cache.
yum list --- will list down the packages or rpms available in the DVD.
yum update --- will update the packages.
yum install httpd --- To test I will be installing httpd server using this command.

#oraclelinux #oraclelinux8 #OL #OL8 #setupyum #linuxrepository #yumdvd #yumsetup




Other Videos By java frm


2024-02-01how to compile and run C/C++ on Ubuntu 22.04 LTS using GNU GCC and G++ compiler
2024-02-01How to install Clang LLVM 15 and how to compile and run C/C++ on Ubuntu 22.04 LTS
2024-02-01How to install Clang LLVM 14 and how to compile and run C/C++ on Ubuntu 22.04 LTS
2024-02-01Red hat Enterprise Linux 9 Tutorial - How to Create local DVD YUM Repository - Setup Yum on RHEL 9
2024-02-01Red hat Enterprise Linux 8 Tutorial - How to Create local DVD YUM Repository - Setup Yum on RHEL 8
2024-02-01Alma Linux 9 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Alma Linux 9
2024-02-01Alma Linux 8 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Alma Linux 8
2024-01-31Rocky Linux 9 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Rocky Linux 9
2024-01-31Rocky Linux 8 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Rocky Linux 8
2024-01-31Oracle Linux 9 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Oracle Linux 9
2024-01-31Oracle Linux 8 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Oracle Linux 8
2024-01-26Red Hat Enterprise Linux 9 Packages - libtheora - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - bubblewrap - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libSM - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libwebp - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libstemmer - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libICE - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - boost-system - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libyaml - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libtraceevent - Full Details of Package
2024-01-26Red Hat Enterprise Linux 9 Packages - libselinux-utils - Full Details of Package



Tags:
how to create local dvd yum repository on oracle linux
how to create local yum repository on oracle linux 8 using dvd
create local yum repository with dvd
set up yum repository for locally mounted dvd
how to create a local repository in oracle linux 8
how to mount the oracle linux 8 iso as a yum repository
mount oracle dvd iso
oracle linux 8 administration
oracle linux 8 tutorial
oracle linux 8 videos
oracle linux 8 tips and tricks
oracle yum repository