Alma Linux 9 Tutorial - How to Create Local DVD YUM Repository - Setup Yum on Alma Linux 9

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



Category:
Tutorial
Duration: 4:53
1 views
0


set up yum repository for locally-mounted DVD on Alma Linux 9

In this video we are going to see how to create local DVD yum repository using the available Alma linux 9 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.

#almalinux #almalinux9 #alma #linux #setupyum #linuxrepository #yumdvd #yumsetup




Other Videos By java frm


2024-02-01How to install Clang LLVM 15 and how to compile and run C/C++ on Linux Mint 21
2024-02-01How to install Clang LLVM 14 and how to compile and run C/C++ on Linux Mint 21 - iostream not found
2024-02-01how to compile and run C/C++ on Ubuntu 23.10 using GNU GCC and G++ compiler
2024-02-01How to install Clang LLVM 17 and how to compile and run C/C++ on Ubuntu 23.10
2024-02-01How to install Clang LLVM 16 and how to compile and run C/C++ on Ubuntu 23.10
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



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