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

发布于 2025-01-16 02:08:55 字数 187 浏览 2 评论 0原文

有什么方法可以在 Ubuntu 上使用 apt 或 apt-get 检查包管理历史记录吗?我的意思是,我知道有一些方法可以在 RedHat 发行版上使用 yum 和 yum 历史记录来执行此操作,并且这还允许我们使用 yum 历史记录 undo

有类似的东西吗?

提前致谢!

Is there any way I can check the package management history with apt or apt-get on Ubuntu? I mean, I know there is some way to do this using yum on RedHat distribution with yum history and also this allow us to do a rollback on certain installation with yum history undo <ID of the package>.

Is there something similar?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〆凄凉。 2025-01-23 02:08:55

你可以检查日志

cat /var/log/apt/history.log

You can check the logs

cat /var/log/apt/history.log
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文