当我输入
aptitude dist-upgrade
我得到例如:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
bc{a} linux-image-2.6.32-24-virtual linux-image-2.6.32-308-ec2
The following packages will be upgraded:
apt apt-transport-https apt-utils base-files bijk-node binutils cloud-init grub-common grub-pc icedtea-6-jre-cacao ifupdown landscape-client landscape-common
libfreetype6 libfreetype6-dev libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libmysqlclient16 libpcsclite1 libsmbclient libudev0
libusb-0.1-4 libwbclient0 libwww-perl lintian linux-ec2 linux-image-ec2 linux-image-virtual linux-libc-dev linux-virtual mountall mysql-client-5.1
mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib python-apt
python-lazr.restfulclient sudo tzdata tzdata-java udev update-manager-core upstart ureadahead w3m wget
54 packages upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 103MB of archives. After unpacking 89.4MB will be used.
Do you want to continue? [Y/n/?]
我想知道每个升级候选版本中有哪些变化。有没有办法查看这些软件包中所有变化的列表?
我知道我能做到
aptitude changelog mysql-server
我可能可以grep
将awk
候选对象与它们传送到 changelog 命令,但执行这一操作需要很长时间。
有没有更好的方法来获取 dist-upgrade 的完整更新日志?
答案1
如果您安装了apt-listchanges
软件包,您将获得更多选项。您可以获取apt-get
和aptitude
显示更新软件包的更改日志(完整更改日志或仅显示升级中的新内容),并在查看更改日志后提示确认。默认情况下,安装后apt-listchanges
,仅显示重要新闻;要查看更改日志,请运行dpkg-reconfigure apt-listchanges
。
在 Debian 中,相关包apt-listbugs
从 获取错误报告bugs.debian.org
。我不确定它是否已被移植到launchpad.net
Ubuntu 中。