Yum Local Repo error

@player001
@Inderpreet
@kodekloud-support3

Hi team,
I have done the task as per process but getting error
steps done for task
cd /packages/downloaded_rpms/

#rm -rf ./repodata

createrepo .

cd /etc/yum.repos.d

vi localyum
[yum_local]
name=yum_local
baseurl=file:///packages/downloaded_rpms
gpgcheck=0

:wq

yum clean all

yum repolist

yum install --disablerepo="*" --enablerepo= “localyum” wget

Kindly resolve this error

Hello, sudheer77
local yum repo name should be contain “.repo” so final name should be like localyum.repo and your repo ID name mismatched.


yum install --disablerepo="*" --enablerepo= “localyum.repo” wget