在“apt update”的输出中,“InRelease”和“Release”指的是什么?

Ell*_*iew 9 debian apt

这是一个显示“ InRelease ”和“ Release ”行后缀的示例:

# apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                                 
Hit:3 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.2/debian stretch InRelease                                                                                                                                                        
Hit:4 http://mirrors.ocf.berkeley.edu/debian stretch-updates InRelease                                                                                                                                                                       
Ign:5 http://dl.google.com/linux/earth/deb stable InRelease                                                                                                                        
Ign:6 http://ftp.uk.debian.org/debian stretch InRelease                                                                         
Hit:7 http://dl.google.com/linux/chrome/deb stable Release               
Hit:8 http://ftp.debian.org/debian stretch-backports InRelease           
Hit:9 http://dl.google.com/linux/earth/deb stable Release                
...
Run Code Online (Sandbox Code Playgroud)

我知道什么是发布。尽管对 InRelease 的网络搜索并没有出现太多。

Ste*_*itt 16

InRelease文件等同于Release文件,不同之处在于它们包含内联 GPG 签名,而验证Release文件需要下载单独的Release.gpg文件。将签名对齐可避免下载时出现竞争条件。

此 FTP 主会议摘要包含此功能的公告,并附有简要说明。

由于标题也询问了它们,我将提到Release文件包含分发元数据和索引文件的校验和。


Ell*_*iew 7

对此的另一个参考是这里:

InRelease 文件是内嵌签名的,而 Release 文件应该有一个附带的 Release.gpg 文件。

https://wiki.debian.org/DebianRepository/Format#Origin