0% found this document useful (0 votes)
64 views

YUM Repository Creation

This document provides steps to resolve errors with YUM package manager on Linux systems. It instructs the user to remove existing YUM repo files, clean the YUM cache, and recreate repositories. If errors persist, it recommends searching for and installing the yum-config-manager package, checking if repositories are enabled, and using createrepo to build packages from a local repository.

Uploaded by

ratnadeepbimtac
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

YUM Repository Creation

This document provides steps to resolve errors with YUM package manager on Linux systems. It instructs the user to remove existing YUM repo files, clean the YUM cache, and recreate repositories. If errors persist, it recommends searching for and installing the yum-config-manager package, checking if repositories are enabled, and using createrepo to build packages from a local repository.

Uploaded by

ratnadeepbimtac
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

In case there are errors regarding YUM (No mirrors found):

1. Remove all yum repo files from /etc/yum.repos.d/


a. rm rf /etc/yum.repos.d/*
2. Clean the yum cache
a. rm rf /var/cache/yum/*
b. yum clean all
3. Recreate the repositories
If still there are errors, try to run #yum-config-manager
If the command is not found run the following:
#yum search yum-config-manager
Output: yum-utils.noarch
Also check whether repositories are enabled: #yum update
Check if the output says if repos are enabled.
Install the createrepo package. If required use #yum install createrepo and use rpm i to install the
packages.
Then create the repo: #createrepo database /repo-source/
And this finally solved all the nonsense!

You might also like