Hi, Is there a way to get a history of which packages were installed/updated when?? I have been googling and trying all sorts or yum and rpm commands and found nothing :-\ Thank you in advance. Regards, Dan
On Sunday 02 April 2006 22:19, Dogsbody wrote:> Hi, > > Is there a way to get a history of which packages were installed/updated > when?? I have been googling and trying all sorts or yum and rpm > commands and found nothing :-\ > > Thank you in advance.You're probably looking for the log file /var/log/yum.log Peter.
Can't you something like this, to get the install time and date.
rpm -qa --queryformat '%{name} %{version}%{release} %{installtime:date}
%{Summary} \n'
The --queryformat has a bunch of options, I am not familiar with all of
them. I had done that a long time back.
--
Prasad
"If everything is coming your way, then you are in the wrong lane"
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.centos.org/pipermail/centos/attachments/20060403/41e6fe23/attachment-0001.html>
Prasad Pillarisetti wrote:> Can't you something like this, to get the install time and date. > > rpm -qa --queryformat '%{name} %{version}%{release} %{installtime:date} > %{Summary} \n' > > The --queryformat has a bunch of options, I am not familiar with all of > them. I had done that a long time back. > > --rpm -qa --last and no, it wont give you details on the yum operations for update and dep installs. -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq
There is also rpm -qa --last which lists the rpms in "last installed" order. ------------------------------------------------------------------------ Jim Wildman, CISSP, RHCE jim at rossberry.com http://www.rossberry.com "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine