ubuntu - 是否有管理 source.list 的工具?

标签 ubuntu debian apt-get

有没有管理工具/etc/apt/source.list ?当我非常需要它时,我已经有几个变体了,例如在使用 fabric 时或 chef或使用 veewee 时用于 Vagrant 的建筑箱.

每次使用 sed 并放置我自己的镜子看起来都不是很有效率。这就是为什么我要问也许有人知道管理 source.list 的工具吗?

最佳答案

git ?但是你应该分开你的 list 。

将镜像放在 /etc/apt/sources.list.d/ 中的单独文件中目录。

这样,如果您需要所有织物镜子,请复制 /etc/apt/sources.list.d/fabric.list .

这将可以通过 puppet 或 saltstack 之类的东西来改变。如果你那么 /etc/apt/preference正确地,当存在结构镜像时,它们将优先于其他镜像(在包版本和依赖项存在冲突的情况下)使用。

关于ubuntu - 是否有管理 source.list 的工具?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22868240/

相关文章:

c++ - 静态库 - 使用自己的 Qt .so 文件的静态库

python - theano.test() : optimization failure due to constant_folding (on ubuntu)

JavaFX 应用程序在 Debian 上抛出空指针异常

linux - 网络打印机不接受来自 Debian Linux 的作业,error_log 中没有错误

php - sudo apt-get install php-redis 停止工作

ubuntu - pod 被禁止 : User "system:serviceaccount:kubernetes-dashboard:admin-user" cannot list resource "pods" in API group "" in the namespace "default"

node.js - 如何保持 Node 应用程序运行?

linux - 如何链接到 GCC 中特定版本的共享库

ubuntu - 在 Ubuntu 上运行 apt-get update 时,Docker 存储库没有发布文件

docker - 易于获取错误 : Version '5:19.03.4~3-0~ubuntu-bionic' for 'docker-ce' was not found