On 06/13/2009 03:55 PM, Scott Beamer wrote:
I'm trying to accomplish either.

I've done it before but I forgot how.

I previously was able to find this information via a Google search but
today I've come up empty.

If you know how, please share. :)

Thanks.

      Scott


There is a cron job that does this every day and creates the file: /var/log/rpmpkgs.

Since it is created every day, its usually best to refer to the file.

If however you just installed some updates, or immediately after a new install, you may want to get the list manually.

If you forget how to get this list on demand, just refer to the cron job: /etc/cron.daily/rpm

$ cat /etc/cron.daily/rpm
#!/bin/sh

tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1
/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \
    | /bin/sort > "$tmpfile"

if [ ! -s "$tmpfile" ]; then
    rm -f "$tmpfile"
    exit 1
fi

/bin/mv "$tmpfile" /var/log/rpmpkgs
/bin/chmod 0644 /var/log/rpmpkgs

--
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to