如何使用命令行启用和禁用百胜存储库
我正在尝试编辑yum.repos.d
文件,以便禁用不需要的存储库,并在不使用VI编辑器的情况下启用了通缉备。每当我使用这种方法时,我都无法进行更改。有人知道我缺少什么吗?
请参阅下面:
yum-config-manager --disable \therepoid,anotherrepoid
注意:我不是从Yum.repos.d
目录执行此操作
I'm attempting to edit the yum.repos.d
file in order to disable unwanted repos and enable wanted repos without using the vi editor. Each time I use the method I know of it fails to make the changes. Does anyone know what I'm missing?
See Below:
yum-config-manager --disable \therepoid,anotherrepoid
Note: I'm not executing this from the yum.repos.d
directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要将命令作为
root
运行然后,您应该获取回购列表:
然后您可以通过
repo_id
从上一个命令中启用或禁用特定的repo(s)。 .com/documention/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-managing_yum_repositories“ rel =“ nofollow noreflow noreferrer”> redhat文档
First you need to run the command as
root
Then you should get the list of repos:
And then you can enable or disable particular repo(s) by
repo_id
from previous commandFor reference you can use RedHat documentation