Mil*_*hiz 5 yum fedora repository
每次我想从 yum 安装一些软件包时,Fedora 都会检查所有存储库以进行更新。这是浪费时间,因为我知道它们已更新!
我怎么能禁用这个检查?
小智 2
如果您知道 yum 已更新,那么在安装之前请访问
\n\n/etc/yum.repos.d目录并编辑 \n /etc/yum.repos.d/fedora-updates.repo
\n\n并在更新中进行更改。在更新中,启用的值设置为 1,因此将其更改为 0。
\n\n启用=值
\n\n\xe2\x80\xa6where value is one of:\n\n0 \xe2\x80\x94 Do not include this repository as a package source when performing updates and installs. This is an easy way of quickly turning repositories on and off, which is useful when you desire a single package from a repository that you do not want to enable for updates or installs.\n\n1 \xe2\x80\x94 Include this repository as a package source.\n\nTurning repositories on and off can also be performed by passing either the --enablerepo=repo_name or --disablerepo=repo_name option to yum, or through the Add/Remove Software window of the PackageKit utility. \n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
5100 次 |
最近记录: |