Kul*_*lfy 11
打开终端并运行:
zgrep 'install ' /var/log/dpkg.log* | sort | cut -f1,2,4 -d' '
Run Code Online (Sandbox Code Playgroud)
示例输出:
2018-09-02 16:10:59 python3-psutil:amd64
2018-09-02 16:11:00 menulibre:all
2018-09-07 14:58:58 indicator-stickynotes:all
2018-09-08 00:17:41 libdumbnet1:amd64
2018-09-08 00:17:41 libxmlsec1-openssl:amd64
...
Run Code Online (Sandbox Code Playgroud)
由于此命令将查找所有日志,因此输出可能非常大。因此,最好使用将其保存到文件中
zgrep 'install ' /var/log/dpkg.log* | sort | cut -f1,2,4 -d' ' > test.txt
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16786 次 |
最近记录: |