![CentOS에서 특정 소프트웨어 패키지가 업데이트되는 것을 방지하는 방법은 무엇입니까?](https://linux55.com/image/134370/CentOS%EC%97%90%EC%84%9C%20%ED%8A%B9%EC%A0%95%20%EC%86%8C%ED%94%84%ED%8A%B8%EC%9B%A8%EC%96%B4%20%ED%8C%A8%ED%82%A4%EC%A7%80%EA%B0%80%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%EB%90%98%EB%8A%94%20%EA%B2%83%EC%9D%84%20%EB%B0%A9%EC%A7%80%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
내 CentOS 시스템에서 특정 패키지가 업데이트되는 것을 원하지 않으므로 해당 패키지의 해당 저장소를 삭제했습니다.
이제 시스템 업데이트를 실행하고 업그레이드하면 패키지가 업데이트되지 않거나 저장소를 삭제한 후에도 업데이트를 받을 수 있습니까?
예를 들어, Opera가 업데이트되는 것을 원하지 않기 때문에 저장소를 삭제했는데도 Opera를 최신 버전으로 업데이트하라는 경고가 계속 표시되므로 시스템 업데이트를 하면 Opera도 업데이트됩니까?
내 저장소 목록은 다음과 같습니다.
google-chrome 3/3
home_tange 2/2
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,911
elrepo ELRepo.org Community Enterprise Linux Repository - el7 249
*epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,582
extras/7/x86_64 CentOS-7 - Extras 305
google-chrome google-chrome 3
home_tange tange's Home Project (CentOS_CentOS-6) 2
nalimilan-julia/x86_64 Copr repo for julia owned by nalimilan 78
updates/7/x86_64 CentOS-7 - Updates 632
repolist: 23,762
yum provides opera
home_tange | 1.3 kB 00:00:00
nalimilan-julia | 3.9 kB 00:00:00
updates | 3.4 kB 00:00:00
elrepo/primary_db | 587 kB 00:00:20
Loading mirror speeds from cached hostfile
* base: centos.myfahim.com
* elrepo: fedora.is
* epel: repo.ugm.ac.id
* extras: centos.myfahim.com
* updates: mirrors.nhanhoa.com
epel 12588/12588
google-chrome 3/3
elrepo/filelists_db | 65 kB 00:00:00
opera-stable-51.0.2830.55-0.x86_64 : Fast and secure web browser
Repo : @opera
Matched from:
Filename : /bin/opera
opera-stable-51.0.2830.55-0.x86_64 : Fast and secure web browser
Repo : @opera
Matched from:
Filename : /usr/bin/opera
내 질문을 업데이트했습니다. 이제 이 줄에서 알 수 있듯이 오페라가 저장소인 것 같습니다.
Repo : @opera
답변1
패키지 버전을 수정하려면 다음을 추가하면 됩니다 /etc/yum.conf
.
[main]
...
exclude=kernel* redhat-release* whatever-package