본문 바로가기
Infra, Cloud/etc.

[Linux] Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast 에러 해결

by 광진구뚝배기 2023. 1. 4.

상황

 

오래 사용하지 않던 서버를 켜 mysql을 설치 하려고 했는데,

아래와 같은 에러가 발생했다.

Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

 

 

 

 

에러 로그

 

[root@yujin ~]# yum list | grep mysql
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

 

 

 

 

해결방법

 

yum repository에 2주 이상 접속하지 않았을 경우 서버에 저장된 패키지의 목록의 Cache가 오래되어 발생하는 에러다.

 

따라서 yum clean all을 해주면 손쉽게 해결된다.

 

[root@yujin ~]# yum clean all
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: base extras updates
Cleaning up list of fastest mirrors
Other repos take up 3.9 M of disk space (use --verbose for details)

 

 

 

 

참고자료

 

https://bluesid.tistory.com/295

반응형

댓글