Yum Check Available Package Updates
Red Hat docs say:
To see which installed packages on your system have updates available, use the following command:
What command must I run to view all
availableversions for a package installed on my system?
yum check-updatetells me
#43is available, but what if I want update
This command won't focus specifically on one package, but by using a regex to do the matching you can still see what's available:
$ yum list available java\* java-1.4.2-gcj-compat.i386 184.108.40.206-40jpp.115 installed java-1.6.0-openjdk.i386 1:220.127.116.11-18.104.22.168.9.el5_9 installed Available Packages java-1.4.2-gcj-compat-devel.i386 22.214.171.124-40jpp.115 base java-1.4.2-gcj-compat-javadoc.i386 126.96.36.199-40jpp.115 base java-1.4.2-gcj-compat-src.i386 188.8.131.52-40jpp.115 base java-1.6.0-openjdk.i386 1:184.108.40.206-220.127.116.11.11.el5_9 updates java-1.6.0-openjdk-demo.i386 1:18.104.22.168-22.214.171.124.11.el5_9
You can make it "smarter" by filtering the output using
Then I can run `yum update ` provided the package, to which I'm trying to upgrade, is, in fact, a higher version of my currently installed package?
That would be correct. You can update to the next version from what you currently have installed.
Note that the official repositories _very_ rarely carry more than one version of a package, old packages are obsoleted for a reason.