我在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/debian和http://security.debian.org/)有什么意义?我一直在阅读有关apt的文档,但我没有找到任何解释 . 在security.debian.org中是否有任何不在http.debian.net/debian中的软件包?反之亦然?
存储库URI到达组件后
- . 我理解wheezy / stable / testing等之间的区别 . 但是wheezy和wheezy / updates之间的区别是什么?
谢谢!
1 回答
deb-src
适用于源包 . 您可以使用它们进行交叉编译和其他整洁的开发 .安全存储库是存储安全相关更新的位置 .
最后,更新repo是发布后发布的更新,我相信 .
看看https://wiki.debian.org/SourcesList
这个SE问题https://unix.stackexchange.com/questions/4255/why-is-there-a-separate-package-repository-for-debian-security-updates