首页 文章

Debian:了解/etc/apt/sources.list

提问于
浏览
0

我在Debian世界里很新 . 我刚刚有一个私人虚拟服务器来托管我的网站,我目前正在学习如何正确保护网络服务器 .

如果我理解的是,在进行apt-get update && apt-get upgrade时,apt将检索/etc/apt/sources.list中列出的存储库中已安装软件包的更新 . 我的sources.list看起来像这样:

deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main

deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

这里来了我的问题:)

  • 我可以删除以“deb-src”开头的行吗?我是否正确,如果我说我不需要包源,除非我想自己修改它们(显然,我只是无法做到)?

  • 拥有多个存储库(http://http.debian.net/debianhttp://security.debian.org/)有什么意义?我一直在阅读有关apt的文档,但我没有找到任何解释 . 在security.debian.org中是否有任何不在http.debian.net/debian中的软件包?反之亦然?

存储库URI到达组件后

  • . 我理解wheezy / stable / testing等之间的区别 . 但是wheezy和wheezy / updates之间的区别是什么?

谢谢!

1 回答

相关问题