Anyone have a script to check a repo for updates and list the new files?
On Aug 21, 2007, at 8:49 AM, John Thomas wrote:
Anyone have a script to check a repo for updates and list the new files?
`yum list updates` gives you a list of packages installed on your system for which updates are available.
`yum list recent` gives you a list of packages that have recently been added to the repositories.
will those do it for you?
-steve
-- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
From: centos-bounces@centos.org on behalf of John Thomas
Anyone have a script to check a repo for updates and list the new files?
yum check-update
If you don't have the repo configured in yum, you can write a repo config, put it in /etc/yum.repos.d, and set enabled to 0. Then use --enablerepo on it, and it will list the updates that you need (not all available updates, though).
If you need something that lists all new updates, whether you need them or not, you have more work to do. But the python code of yum would be a good place to start. -- Lamar Owen Chief Information Officer Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 828-862-5554 www.pari.edu
_______________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos