简体   繁体   English

如何获取已删除的rpm的详细信息

[英]How to get details of Deleted rpms

I had some rpms which was build locally using rpm-build.I installed it on CentOS machine and later i removed and installed latest build ones. 我有一些使用rpm-build在本地构建的rpms。我将其安装在CentOS机器上,后来我删除并安装了最新的rpms。 Now i am in a situation to get the previous installed rpm version. 现在我有一种情况可以获取以前安装的rpm版本。 Is there any way to get the list of removed rpms??. 有什么方法可以获取已删除的rpm列表吗? I removed the previous rpms using "rpm -e" command. 我使用“ rpm -e”命令删除了先前的rpm。

Older versions stored a snapshot of the installed RPMs in /var/log/rpmpkgs - I don't remember what interval, but it's not built-in; 较旧的版本将已安装的RPM的快照存储在/var/log/rpmpkgs -我不记得是什么时间间隔,但是它不是内置的。 it was a cron job. 这是一项计划工作。 Newer distributions don't seem to do that any more, because yum logs everything natively, and the cron job was kind of a hack. 较新的发行版似乎不再执行此操作,因为yum本地记录所有内容,而cron工作有点像黑客。

You don't say what version of CentOS, but if you don't have that log file, I think you're out of luck. 您没有说什么版本的CentOS,但是如果您没有该日志文件,我想您很走运。 You might get lucky and have it in somebody's shell history (root or a user who ran sudo ). 您可能会很幸运,并且已经在某人的外壳历史中拥有它(root用户或运行sudo的用户)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM