Professional Documents
Culture Documents
Step-1 connect rhel ISO image to copy all the dvd files into any
directory ...
[root@station1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 9.9M 3.8G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/rhel-root 27G 4.0G 23G 15% /
/dev/sda1 1014M 169M 846M 17% /boot
tmpfs 780M 16K 780M 1% /run/user/42
tmpfs 780M 4.6M 775M 1% /run/user/0
/dev/sr0 6.7G 6.7G 0 100% /run/media/root/RHEL-8-0-
0-BaseOS-x86_64
[root@station1 ~]#
[root@station1 ~]# mkdir /redhatdvd
[root@station1 ~]#
[root@station1 ~]# cd /run/media/root
[root@station1 root]#
[root@station1 root]# ls
RHEL-8-0-0-BaseOS-x86_64
[root@station1 root]#
[root@station1 root]# cd RHEL-8-0-0-BaseOS-x86_64
[root@station1 RHEL-8-0-0-BaseOS-x86_64]# ls
AppStream EFI extra_files.json images media.repo
RPM-GPG-KEY-redhat-release
BaseOS EULA GPL isolinux RPM-GPG-KEY-redhat-beta
TRANS.TBL
[root@station1 RHEL-8-0-0-BaseOS-x86_64]#
[root@station1 RHEL-8-0-0-BaseOS-x86_64]# cp -rf * /redhatdvd
[root@station1 RHEL-8-0-0-BaseOS-x86_64]# cd
[root@station1 ~]#
[root@station1 ~]# ls /redhatdvd
AppStream EFI extra_files.json images media.repo
RPM-GPG-KEY-redhat-release
BaseOS EULA GPL isolinux RPM-GPG-KEY-redhat-beta
TRANS.TBL
[root@station1 ~]#
[root@station1 ~]# eject
[firsturl]
name=this is local yum for baseos directory.
baseurl=file:///redhatdvd/BaseOS
enabled=1
gpgcheck=0
[secondurl]
name=this is my local yum for appstream directory.
baseurl=file:///redhatdvd/AppStream
enabled=1
gpgcheck=0
[root@station1 yum.repos.d]# cd
[root@station1 ~]#
[root@station1 ~]#
[root@station1 ~]#
[root@station1 ~]# yum search vsftpd
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You
can use subscription-manager to register.
Last metadata expiration check: 0:05:38 ago on Thu 17 Oct 2019
07:24:45 PM IST.
================================================= Name Exactly
Matched: vsftpd =================================================
vsftpd.x86_64 : Very Secure Ftp Daemon
vsftpd.x86_64 : Very Secure Ftp Daemon
[root@station1 ~]#
[root@station1 ~]# rpm -qa vsftpd
vsftpd-3.0.3-28.el8.x86_64
[root@station1 ~]#
[root@station1 ~]# yum list installed vsftpd
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You
can use subscription-manager to register.
Installed Packages
vsftpd.x86_64 3.0.3-
28.el8
[firsturl]
name=this is local yum for baseos directory.
baseurl=file:///redhatdvd/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///redhatdvd/RPM-GPG-KEY-redhat-release
[secondurl]
name=this is my local yum for appstream directory.
baseurl=file:///redhatdvd/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///redhatdvd/RPM-GPG-KEY-redhat-release
Second method:---
[root@station1 ~]#
[root@station1 ~]#
[root@station1 ~]# yum-config-manager --add-
repo=file:///redhatdvd/AppStream
**************************************************
all steps will be same , we will only change the Baseurl location...