Script to check for updates



Hi,

I need to know (inside a perl script) if a system needs to be updated.

On Fedora I check using "yum check-updates" which kindly exits with a
return value of 100 if updates are available or 0 otherwise.

I checked the up2date man page but I was not able to find something
similar. Is there a similar way to query up2date or the only way is to
parse the output of "up2date -l"?

Thanks,

Matteo

.



Relevant Pages

  • Re: Script to check for updates
    ... On Fedora I check using "yum check-updates" which kindly exits with a ... I checked the up2date man page but I was not able to find something ... I'm confused are you not printing the yum check-updates output? ...
    (linux.redhat)
  • Re: Fedora up2date and yum
    ... I tried SuSE 9 just to see if it would work as a viable alternative. ... > myself having to install nearly half my common apps from source, ... > regardless of what I tried, so I decided to just have a look at Fedora. ... > When I ran up2date and it hung for a really long time. ...
    (linux.redhat)
  • RE: looking for comments/reactions to the fedora project
    ... Up2date is available in Fedora. ... Notice what a Fedora Update is. ... > server farm is going to place faith in. ...
    (RedHat)
  • RE: yum/apt-get (was Re: Fedora)
    ... Your boss is probably over reacting. ... until 6 months after the next one (Fedora). ... > sense that Fedora picks up the up2date program if for no other reason ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: Build a cheap server?
    ... I'm worrying to much about up2date. ... I found YUM easy to use & better to ... update/upgrade my installed packages with. ... >>>> And what is wrong with using Fedora as a server? ...
    (alt.os.linux.redhat)