Answers:
一种方法是通过使用打开终端CtrlAltT并发出命令来获取带时间戳的列表。more /var/log/dpkg.log
这将为您提供比当前要求更多的信息。您可以使用grep
以下命令来大大缩小结果的范围,例如,该命令显示截至今天为止在我的系统上已安装/升级的软件包:
grep "2017-08-21" /var/log/dpkg.log | grep "status installed"
2017-08-21 11:44:41 status installed man-db:amd64 2.6.7.1-1ubuntu1
2017-08-21 11:44:41 status installed doc-base:all 0.10.5
2017-08-21 11:44:41 status installed install-info:amd64 5.2.0.dfsg.1-2
2017-08-21 11:44:41 status installed desktop-file-utils:amd64 0.22-1ubuntu1.1
2017-08-21 11:44:41 status installed mime-support:all 3.54ubuntu1.1
2017-08-21 11:44:41 status installed gnome-menus:amd64 3.10.1-0ubuntu2
2017-08-21 11:44:42 status installed bamfdaemon:amd64 0.5.1+14.04.20140409-0ubuntu1
2017-08-21 11:44:42 status installed hicolor-icon-theme:all 0.13-1
2017-08-21 11:44:42 status installed libgraphite2-3:amd64 1.3.10-0ubuntu0.14.04.1
2017-08-21 11:44:42 status installed logrotate:amd64 3.8.7-1ubuntu1.2
2017-08-21 11:44:42 status installed augeas-lenses:all 1.2.0-0ubuntu1.3
2017-08-21 11:44:42 status installed cvs:amd64 2:1.12.13+real-12ubuntu0.1
2017-08-21 11:44:42 status installed landscape-client-ui-install:amd64 14.12-0ubuntu6.14.04
2017-08-21 11:44:43 status installed libaugeas0:amd64 1.2.0-0ubuntu1.3
2017-08-21 11:44:43 status installed libc-bin:amd64 2.19-0ubuntu6.13
如果要检查已安装的特定软件包的更改日志,则可以使用命令获得该信息,sudo apt-get changelog packagename
其中packagename是软件包的名称。
例:
sudo apt-get changelog logrotate
将提供软件包的更改日志 logrotate