@Ayman @Tej-Singh-Rana I’m getting " Error getting repository data for, repository not found" while trying to install vim-enhanced from local yum repo. I tried the following
cd /etc/yum.repos.d
sudo vi local_yum.repo
[local_yum]
name=local_yum
baseurl=file:///packages/downloaded_rpms
gpgcheck=0
enabled=1
sudo yum clean all
sudo yum repolist -> I could see the local repo listed as per requirement
sudo yum install --disablerepo="*" --enablerepo=“localyum” vim-enhanced
Gets the error.
Then removed repodata from the folder /packages/downloaded_rpms/
sudo rm -rf repodata
sudo createrepo -v /packages/downloaded_rpms/
sudo yum clean all
sudo yum repolist -> I could see the local repo listed as per requirement
sudo yum install --disablerepo="*" --enablerepo=“localyum” vim-enhanced
Still gets the same error and my Task failed. I had successfully installed vim-enhanced using below command, but I understand ie not the requirement.
sudo yum install vim-enhanced