博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转】关于apt源配置的问题
阅读量:7077 次
发布时间:2019-06-28

本文共 926 字,大约阅读时间需要 3 分钟。

涉及的基本配置文件:
apt核心配置文件集中在 /etc/apt
其中,管理软件来源的配置文件如下
    sources.list                           // 主要软件源
    sources.list.d/*.list               // 个别软件的源
    preferences                         // 控制文件,具体用法参见 man apt_preferences
.list文件的基本语法
deb uri distribution [component1] [component2] [...]
uri                             apt源的网络地址
distribution               对于Debian就是stable/testing/unstable/experimental,Ubuntu是feisty/dapper/等 
component               main/contrib/non-free
    
配置优化的依据
使用synaptic/aptitude升级或者下载软件时,包管理系统为每个apt源地址建立一个下载的线程
component是.list文件基本配置语法中涉及的最小单位,uri>distribution>component;当且仅当uri,distribution,component都相同时,两个component是相同的。
apt源是全球分布的,即uri的选择是最为丰富的
具体技巧
为每个component选择一个uri
不同的component使用不同的uri
最大的component使用最快的uri
现实中优化的sources.list
$cat sources.list
# the main Debian packages.
deb http://www.zentek-international.com/mirrors/debian/ experimental main
deb http://ftp.tw.debian.org/debian/ testing main
deb ftp://opensource.nchc.org.tw/debian/ testing contrib non-free
优化后的效果
 

转载于:https://www.cnblogs.com/lirongzheng/p/8177524.html

你可能感兴趣的文章
SQL基本编程,分支语句,循环语句,存储过程,触发器
查看>>
软件测试2019:第三次作业
查看>>
NOIP2018 游记
查看>>
luoguP4647 [IOI2007] sails 船帆
查看>>
C#读写文本和连接数据库
查看>>
浮点数值的表示
查看>>
winform窗体取消最大化双击标题最大化
查看>>
[cogs2652]秘术「天文密葬法」
查看>>
前端之移动页面布局
查看>>
Computer Vision Algorithm Implementations
查看>>
2013年
查看>>
ImageLoader
查看>>
css 选择符中的 >,+,~,=,^,$,*,|,:,空格 的意思
查看>>
白话数字签名(3)——Web程序中的数字签名(转)
查看>>
使用javascript连接mqtt协议(自动重连问题)
查看>>
bzoj2337
查看>>
并查集(Union-Find)算法介绍
查看>>
Codeforces 1097 Alex and a TV Show
查看>>
struts2的验证框架
查看>>
ios开发之--textview意见反馈页面(占位label,字数统计,提交按钮的交互设置)...
查看>>