Linux Repositories 2
上一章讲的设置[main]部分的选项,这章介绍设置[repository]选项部分的值
[repository]部分,这里repository是一个独一无二的repository ID,比如my_personal_repo(空格是不允许的),这样可以定义一个单独的yum repository
每个[repository]部分必须包括下面的选项
name=reposiptory_name
这里,repository_name是方便阅读的描述repository的字符串
baseurl=repository_url
如果repository通过http访问,那么应使用http://path/to/repo
如果通过FTP访问,那么应使用 ftp://path/to/repo
如果repository在本地,那么试用file:///path/to/local/repo
如果指定的网络上的repository需要http验证的话,可以使用形如username:password@link的url格式访问
比如在http://www.example.com/repo/ 需要用一个用户名是user,密码是password的账户登录,那么baseurl写为:http://user:password@www.example.com/repo/
还有一些有用的参数(非强制):
1. enabled=value
意义:通知yum使用或者忽略一个特殊的repository
取值:
0:升级或者安装时不要将该repository作为包源,这是个开启或者关闭repository的简单办法,这种方法通常用于在不希望用于安装或者升级的repository中只选取一个包安装的情况
1:将这个repository包含在包安装源中
注意:这个参数项与 yum --enablerepo=repo_name 或者是yum --disablerepo=repo_name 选项含义一样
2. async=value
意义:控制并行下载repository包
取值:
auto:默认值,尽可能使用并行下载
on:开启对于repository的并行下载
off:关闭对于repository的并行下载
转载于:https://www.cnblogs.com/jiashenren/p/4175780.html
Linux Repositories 2相关推荐
- mint 安装chrome_在Linux Mint上安装Chrome –简单的分步指南
mint 安装chrome In this tutorial, we will see how to install Chrome on Linux Mint. Google Chrome is a ...
- kali linux amd显卡驱动,AMD 显卡安装debian
Check your /etc/apt/sources.list. If it's anything different to the following, you need to fix it. Y ...
- (2018最新)Kali linux 安装中文输入法的方法
(2018最新)Kali linux 安装中文输入法的方法 回头一看,在kali中安装中文输入法是真的难,整了三天,重装3次系统,终于安装成功. 下面我将自己遇到的坑和网上现有的方法结合起来给大家总结 ...
- linux centos yum 报错 one of the configured repositories failed 解决方法
目录 错误现象 解决方法 第一步 第二步 错误现象 One of the configured repositories failed (Unknown), and yum doesn't have ...
- Linux yum 报错:One of the configured repositories failed (Unknown), and yum doesn't have.
1. 请先确定你是无法联网还是配置问题. ping www.baidu.com 如果是正常ping那可以看这个帖子完成配置 https://blog.csdn.net/weicuidi/articl ...
- linux下安装sbt_如何在Linux上安装SBT
linux下安装sbt 介绍 (Introduction) Hi! I am Sanjula, and in this guide I hope to teach you how to install ...
- shell中竖线的作用_如何在 Linux 中安装、配置和使用 Fish Shell?
每个 Linux 管理员都可能听到过 shell 这个词.你知道什么是 shell 吗? 你知道 shell 在 Linux 中的作用是什么吗? Linux 中有多少个 shell 可用? -- Ma ...
- Linux系统下软件包管理四
3.其它类型软件:1)基于perl 和python 的程序的安装:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com: ...
- 在 Linux“.NET研究” 操作系统中运行 ASP.NET 4 (下)
"在 Linux 操作系统中运行 ASP.NET 4 (中)"中已经配置好了 openSUSE 11.3 操作系统. 现在,我们进入"GNOME 终端",使用 ...
最新文章
- 北大陈平原教授:写出优秀的学术论文,“小题大做”是关键
- WS-Eventing、WS-Transfer Web服务标准
- vdsm的SSL证书验证过程
- SAP Spartacus core模块的单元测试
- javascript中的内存泄漏
- 190517每日一句
- python编程机械_机器人Python编程与开发
- 树莓派Python读取DHT11温湿度数据
- 自定义拍照时 拍照界面_当生活中拍照不知道摆什么姿势时,可以试试动漫中这些动作...
- python如何给某列数据打标签_Python map, apply, transform 打标签方法汇总(初阶到高阶)...
- 【数据结构与算法】之深入解析“情侣牵手”的求解思路与算法示例
- 上级对下级用通知合适吗_通知一般用于上级对下级
- leetcode406:const、、static
- 爬虫xx网站论坛的帖子源码分享
- 12-20210225华为海思Hi3518EV300在鸿蒙系统下测试WIFI(AP+STATION模式)
- Google gflags使用说明
- 2013.08.08——— android 中文简繁体转换
- 只需五步!哈佛学霸教你用Python分析相亲网站数据,在两万异性中找到真爱
- ios10 Android airplay,iOS下AirPlay投屏功能实现
- opencv读取图像的函数