gpt4 book ai didi

linux - 如何在 Ubuntu 上通过 CLI 显示 apt 历史记录

转载 作者:行者123 更新时间:2023-12-04 18:42:30 26 4
gpt4 key购买 nike

有什么方法可以在 Ubuntu 上使用 apt 或 apt-get 检查包管理历史记录?我的意思是,我知道在 RedHat 发行版上使用 yum 有一些方法可以做到这一点,yum history这也允许我们使用 yum history undo <ID of the package> 对某些安装进行回滚.
有没有类似的东西?
提前致谢!

最佳答案

您可以查看日志

cat /var/log/apt/history.log

关于linux - 如何在 Ubuntu 上通过 CLI 显示 apt 历史记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71577999/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com