Configure Local Yum Repository in RHEL 7 (CentOS 7) | Nehra Classes

Published: 27 October 2019
on channel: Nehra Classes
41,838
512

Configure Local Yum Repository in RHEL 7 (CentOS 7) | Nehra Classes
=========================================================

Hello Friends,

Today in this video I shall guide you to configure local yum repository in RHEL7. Please post your queries in comment section, free to clear your doubts.

Steps to configure local Yum Repository in RHEL 7:

1. Login as root user in the server & mount RHEL 7 DVD ISO image to any directory e.g. /mnt

#mount /dev/sr0 /mnt

2. If you want to mount it permanently, make an entry in fstab file for the same.

vim /etc/fstab

3. Now go to /etc/yum.repos.d/ directory and create a file with any name but extension as .repo
(e.g. local.repo).

vim /etc/yum.repos.d./local.repo

4. Now write below mentioned lines in the above file and save it.

[localrepo]
name=localrepo
gpgcheck=0
enabled=1
baseurl=file:///mnt/

5. Now clean yum cache
yum clean all

6. Now check if your newly created local repository is working or not. Run below command and see the output whether if shows packages or not.

yum repolist

7. Now you can install packages, (e.g install xclock package)
yum install -y xclock

Hurry! you have configured local yum repository successfully.

thanks for watching.
----------------------++++++++-+++++++----------------------

You can also join our telegram channel (link below) to join our team, access huge study material and for updates on upcomming videos.

t.me/NehraClasses

Thanks


Watch video Configure Local Yum Repository in RHEL 7 (CentOS 7) | Nehra Classes online, duration hours minute second in high quality that is uploaded to the channel Nehra Classes 27 October 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 41,838 times and liked it 512 visitors.