Re: "rpm -qa" or "yum list installed" sans version numbers?
- From: Phil Meyer <pmeyer@xxxxxxxxxxxxxxxx>
- Date: Sat, 13 Jun 2009 18:07:02 -0600
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
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
- Follow-Ups:
- Re: "rpm -qa" or "yum list installed" sans version numbers?
- From: Sharpe, Sam J
- Re: "rpm -qa" or "yum list installed" sans version numbers?
- References:
- "rpm -qa" or "yum list installed" sans version numbers?
- From: Scott Beamer
- "rpm -qa" or "yum list installed" sans version numbers?
- Prev by Date: How do I get the flash plugin to use pulseaudio?
- Next by Date: Nevermind Re: How do I get the flash plugin to use pulseaudio?
- Previous by thread: Re: "rpm -qa" or "yum list installed" sans version numbers?
- Next by thread: Re: "rpm -qa" or "yum list installed" sans version numbers?
- Index(es):
Relevant Pages
|