[K12OSN] How to discover latest packages installed by Yum

Calvin Dodge caldodge at fpcc.net
Thu Mar 10 20:42:45 UTC 2005


On Thu, Mar 10, 2005 at 12:07:34PM -0800, Robert Arkiletian wrote:
> On Thu, 10 Mar 2005 13:04:16 -0700, Calvin Dodge <caldodge at fpcc.net> wrote:
> > On Thu, Mar 10, 2005 at 11:53:14AM -0800, Robert Arkiletian wrote:
> > > I did yum update last week. Some of my clients are now sometimes
> > > getting disconnected from X. Here is what /var/log/messages says
> > >
> > > Mar  9 13:38:56 server gdm[23409]: gdm_slave_xioerror_handler: Fatal X
> > > error - Restarting ws133.ltsp:0
> > >
> > > Is there any way to find out the lastest packages installed by yum?
> > > I could try reverting to the original packages and see if that fixes
> > > things.
> > 
> > cat /var/log/yum.log
> > 
> 
> Unfortunately, this file on my server is empty. Nothing in it. Maybe
> because I  rebooted the server since my last yum update. Is there any
> other way?

Nope, the yum log file isn't wiped during reboot. 

Previous versions rotated the log every week. Current versions rotate it
once it reaches a specified size.

Is there a /var/log/yum.log.1?  Are there _any_ yum logs in /var/log?

If there's nothing in the current log file, and nothing in /var/log/yum.log.1,
AND you're certain yum is active (try running it manually to look for error
messages, and run "chkconfig --list yum" to verify that it's set to run
automatically), then you have something weird going on.

> Is there a dir where the downloaded packages are kept? Maybe I can
> sort them by date?

Yum can use multiple repositories, and will create a separate directory for
each such repository.  All of those dirs will be in /var/cache/yum. If
you installed K12LTSP, you'll see repositories for "base" and "k12ltsp", and
(possibly) "updates-released".  Inside each repository you'll see a "packages"
directory, and that directory contains any downloaded RPMS.

Previous yum versions timestamped downloaded RPMs with the download date/time,
while (I believe) current versions retain the timestamps which the RPMs had
on the yum servers.  Either way, sorting those repositories by time should give
you an approximate install date.

Calvin

-- 
Calvin Dodge
Certified Linux Bigot (tm)
http://www.caldodge.fpcc.net




More information about the K12OSN mailing list