简体   繁体   English

APT包发布或存储库日期

[英]APT package release or repository date

I have been searching for a way to obtain a timestamp for when a package was either released for general use or possibly when first loaded on a local repository. 我一直在寻找一种方法来获取一个包被释放以供一般使用或可能首次加载到本地存储库时的时间戳。 Something in either Shell or Python would be ideal, but I'm open to other options at this point. Shell或Python中的东西都是理想的,但我现在对其他选项持开放态度。 I know packages support a changelog, but it looks like not all packages include a release date. 我知道包支持更改日志,但看起来并非所有软件包都包含发布日期。

Thanks! 谢谢!

The answer depends on what exactly you are looking for, and it's not clear from the question. 答案取决于你究竟在寻找什么,而且问题并不清楚。 Before reproducible builds were introduced, the date a package was built could be retrieved from the raw ar members such as: 在引入可重现的构建之前,可以从原始ar成员中检索构建包的日期,例如:

ar tv pkgname_version_arch.deb

If you are looking for the date the package got accepted/uploaded into a specific repository, then the answer will depend on what repository and the software used to manage it. 如果您正在寻找包被接受/上传到特定存储库的日期,那么答案将取决于用于管理它的存储库和软件。 For Debian you can get the information from UDD , from the debian-devel-changes mailing list for the maintainer uploads (but not the buildd uploads, or from package tracker , other derivatives and distributions might have different interfaces or none at all. For other private repositories perhaps there are publicly accessible logs available. 对于Debian,您可以从UDD获取信息,从维护者上传的debian-devel-changes邮件列表(但不是构建的上传,或包跟踪器 ,其他衍生品和发行版可能有不同的接口或根本没有。对于其他私有存储库也许有可公开访问的日志。

As you mention the changelog can be used for when the source package was prepared, but that might be wildly different to when it got built or even uploaded. 正如您所提到的,更改日志可用于准备源包时,但这可能与构建甚至上载时有很大不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM