Re: "rpm -qa" or "yum list installed" sans version numbers?



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



Relevant Pages

  • Re: Mac OSX sucks big time
    ... Tim McNamara wrote: ... but it's becoming normal to refer to ... install linux, GNOME didn't bother giving me an error message to ... It makes no difference what language they are in or what your mother ...
    (comp.sys.mac.system)
  • Re: problem with Dolphin
    ... I am running the rawhide build of KDE4. ... use of the rpm command. ... I don't have a 386 install of f9 anymore maybe ... (the correct way to query rpm about the file, please refer ...
    (Fedora)
  • Re: [OT] Need Computer Geek Advice
    ... like some of the more virulent malware rather than a virus. ... I found several sites on a Google search that purported to remove ... I ran into a PC World review of the Trend Micro product, ... install (I also do NOT connect to the Internet until I at least have XP SP2 ...
    (alt.guitar.bass)
  • RE: Server 2k migration to Server 2k3
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >>> Please refer to ... >>> Microsoft Online Partner Support ... >>> install ...
    (microsoft.public.windows.server.migration)
  • Re: MBSA
    ... should install it, but if you are only being given the info ... You can also refer to Add/Remove to see if the KB ... Microsoft MVP (Windows Server System: ... > Please refer to Q306460 for a detailed explanation. ...
    (microsoft.public.windowsxp.security_admin)