coreutils and util-linux
Tim Waugh
twaugh at redhat.com
Mon Mar 1 11:26:16 UTC 2004
FWIW, I use this script (run it in a directory of available RPMs) to
see which version-releases differ to what's installed.
#!/bin/bash
echo -e "Installed\\r\\t\\t\\t\\t\\tAvailable"
echo -e "---------\\r\\t\\t\\t\\t\\t---------"
for pkg in $(rpm -qa | sort)
do
pkgname=$(echo $pkg | sed -e 's/^\(.*\)-[^-]\+-[^-]\+$/\1/')
qpkgname=$(echo $pkgname | sed -e 's/+/\\+/g')
file=$(ls -t1 ${pkgname}-*-*.*.rpm 2>/dev/null |
grep "^${qpkgname}-[^-]\+-[^-]\+\.\(i386\|noarch\)" | head -n 1)
file=${file%.*.rpm}
[ -n "${file}" ] && [ "${pkg}" != "${file}" ] && \
echo -e "${pkg}\\r\\t\\t\\t\\t\\t${file}"
done
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20040301/a4da4189/attachment.sig>
More information about the fedora-test-list
mailing list