我是Debian世界的新手。我剛剛有一臺私人虛擬服務器來託管我的網站,而且我目前正在學習如何正確保護網絡服務器。Debian:理解/etc/apt/sources.list
如果我理解的很好,apt-get更新& & 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有什麼區別?
謝謝!
THX的答案和SE的問題,內容非常豐富。對於我來說,不清楚什麼是btw的喘息和喘息 - 更新。 – PGBI 2014-12-04 18:32:39
@PGBI,它們是不同的存儲庫分支。 Wheezy應該是「V1.0」Debian軟件;如果您願意,Wheezy-Updates應該是「V1.1」。 SE問題的原因是安全回購是分開的,這與更新回購分開的原因相同。 – MeetTitan 2014-12-04 19:32:03
所以如果我在wheezy分支上說我會得到我們可以稱之爲「V1.0.x」的更新,而在wheezy-updates上我會得到「V1.x」更新,我是否正確? – PGBI 2014-12-04 21:31:41