这个问题描述了如何获取给定包的变更日志。但是,这是整个变更日志。
我想要的是一种查看我将要升级的内容会发生什么变化的方法。例如,我在想象这样的事情:
$ sudo apt-get upgrade --show-changelogs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
foo
-- adds the bar feature for better snazziness
-- removes the deprecated baz feature
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,864 kB of archives.
After this operation, 285 kB disk space will be freed.
Do you want to continue [Y/n]?
Run Code Online (Sandbox Code Playgroud)
不幸的是,我在 apt-get …
GUI 更新管理器能够显示要安装(尚未下载)的软件包的“更改日志”。
我还发现了如何在正确的位置提供 .changelog 文件以供更新管理器显示它们,现在我很高兴,因为我能够告诉我的客户他们可以直接从他们的贵。
不幸的是,我找不到任何命令行工具来做同样的事情,这在服务器上会更有用。
从我看到的情况来看,这个约定(将 .changelog 文件直接放在 apt 存储库中的 .deb 文件旁边)似乎是一个特定于 ubuntu 的扩展。
有一些 debian 资源(例如 reprepro 手册页)指出了在线存储变更日志的不同方式,http: //packages.debian.org/changelogs
有人知道是否已经存在像 apt-cache 这样的工具来显示尚未安装(或下载)的软件包的更改日志?