我不希望某些软件包在我的 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