Yum Clean and rebuild repository

In case if youm is unable to install the utilities, you must need to clean yum repository and rebuild the repository.

  • Here we will clean the yum repository and rebuild it

yum clean all
rpmdb --rebuilddb

  • Updating Yum

yum update

  • Adding New reposotory mirrors


cd /etc/yum.repos.d/
rm -rf CentOS-Base.repo
mv CentOS-Base.repo.rpmnew CentOS-Base.repo

Posted in Linux Commands Tagged with: , , ,