[Linux] 리눅스 yum install 시 failovermethod 오류
CentOS8 환경에서 yum install을 진행하려는데 다음과 같은 오류가 떴다.
*failovermethod 해결법
sudo sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repo
입력하니
이런 오류가 뜬다.
찾아보니 CentOS8의 패키지관리 명령어는 dnf인데 yum과 100% 호환된다고 한다.
즉, yum 대신 dnf를 사용하면 된다는 뜻.
혹시나 하고
sudo dnf install --allowerasing 패키지명
으로 실행하니 바로 설치가 되었다.
dnf는 종속성 해결을 위해 기존 설치된 패키지를 삭제하고 종속성이 해결된 패키지를 설치한다.
또한 제거할 패키지가 명시적으로 정의되지 않은 yum swap 명령의 대안으로 사용할 수 있다.
참고하면 좋을 자료이다. (dnf 명령어 옵션 다양하게 확인가능)
DNF Command Reference — dnf latest documentation
For an explanation of , and see Specifying Packages. Alias Command Allows the user to define and manage a list of aliases (in the form ), which can be then used as dnf commands to abbreviate longer command sequences. For examples on using the alias command
dnf.readthedocs.io