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

preview_player
Показать описание
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

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

[localrepo]
name=localrepo
gpgcheck=0
enabled=1

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.

Thanks
Рекомендации по теме
Комментарии
Автор

Thank you so much Nehra Sir, for making process simple to understand.
Appreciate your efforts..

spybond
Автор

Sir it is working perfectly, Thanks huge respect from pakistan

syedrehman
Автор

Sir You are Great Thank you so much .. Excellent

shoebathar
Автор

it worked as it is, thank you for making it simple

sureshlinux
Автор

Yum repo successfully configure and working fine but After reboot it's going for entire cent os 7 installation ???
My machine not starting.. it's going for CentOS 7 installation, troubleshoot options are showing..
Please suggest me what should I do...

buntymhatre
Автор

it wont mount /mnt permenently ... how to add entry in /etc/fstab ?

sakshideshpande
Автор

offline os patch update on linux using ansible

RavikanthRavi-fc
Автор

Hello sir after yum clean all command, o files removed is showing

pritamghosh
Автор

So no need of internet after creating local repository

babitha
Автор

Its saying failed to download metadata for repo 'localrepo' : cannot download repomd.xml Cannot download repodata/repomd.xml, All mirror were tried

sudhirgoswami
Автор

xclock didn't show for me, do I need to be on gui interface?

therajajr
Автор

Sir how to copy cd/dvd derive in directory

madhabsantra
Автор

For Non hindi people we are finding difficulty in following ur classes..can you please say in English also pls

malarvizhiannadurai
Автор

After :wq! It is not returning to terminal what to do

divyaa
Автор

How can we create YUM local repositories in centos7.kindly help me

biharlearning
Автор

Get curl error (37) I tried in centos 8 -vm

shashikeshnaokar
Автор

I have created a folder called packages In /var/www/html/ and copied some .rpm packages to it. Then changed selinux context

to httpd_sys_content_t.

Also added http in firewall.

On the client machine I created a repo file "new.repo" in /etc/

yum.repos.d/

The repo file contains

[new]

name = newrepo

enabled = 1

gpgcheck = 0


Then I cleaned the yum cache using

Yum clean all

And then I tried to list repos using

Yum repolist all

But it says the repo file is disabled.

I tried everything but it's still disabled

Please help

lifeinframesdt
Автор

Hi sir, how can I configure online yum.

theorie_avis
Автор

Why cant to say the same stuff in english, (::

armsbabu