yum unable to update server with yum update -y command

0

there is some repo is enabled what should i do now should i enable all or disable and how to do it

질문됨 일 년 전1638회 조회
3개 답변
1
수락된 답변

Sometimes, when you try to run a yum update command, you might run into errors due to misconfigured or misbehaving repositories.

If you are receiving errors related to a specific repository, it's often a good idea to temporarily disable that repository and then re-run the yum update command. This can help isolate whether the issue is with that specific repository or with something else.

To disable a specific repository, you can use the --disablerepo option followed by the repository's ID. For example, if you wanted to disable a repository with the ID 'bad-repo', you would use the following command:

sudo yum update --disablerepo=bad-repo

You can also permanently disable a repository by modifying the .repo file in /etc/yum.repos.d/. Each repository should have its own file, and you can disable it by changing the enabled=1 line to enabled=0.

For example, to disable the 'bad-repo' repository, you would do the following:

  1. Open the repository's file:

    sudo nano /etc/yum.repos.d/bad-repo.repo
  2. Find the line that says enabled=1 and change it to enabled=0.

  3. Save the file and exit the editor.

  4. Try running sudo yum update again.

To list all of your yum repositories and see whether they're enabled or disabled, you can use the yum repolist all command. This will output a list of all repositories along with their status.

If you want to enable all repositories, you can do so with the --enablerepo option followed by an asterisk:

sudo yum update --enablerepo='*'

Note: Be careful with enabling all repositories, as this might lead to conflicts or other issues if the repositories are not fully compatible with each other. It's usually a good idea to only enable the repositories that you need.

profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 한 달 전
0

Enter image description here getting this error

답변함 일 년 전
  • which version is it? can you write the error also possible since i could not see the error well

0

im unable to do this nano editor is showing empty getting bash command not found error Enter image description here

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠