On 05/17/2016 11:53 AM, dwoody5654 wrote:
On 05/17/2016 12:54 PM, Rick Stevens wrote:
On 05/17/2016 10:43 AM, dwoody5654 wrote:
I use Rex to maintain remote servers. Using Rex to do a upgrade on the remote server using the following commands does not work:
yum -y upgrade vim-X11-2:7.4.1718-1.fc22 yum -y upgrade vim-common-2:7.4.1718-1.fc22 yum -y upgrade vim-enhanced-2:7.4.1718-1.fc22 yum -y upgrade vim-minimal-2:7.4.1718-1.fc22
Rex does a sudo for each command. Also logging in to the remote server and doing the above upgrades work as it should. I manage remote systems with both F22 and F23 and each has the same failure. All other upgrades are done correctly, it is just the ones related to vim that fail.
All other commands work correctly.
Any ideas on how to troubleshoot this?
It would be nice for you to tell us _what_ the failure is. What errors are shown?
My bad. I forgot that I keep a log of the upgrades on the remote server. In looking at the log I found that if all four are not ungraded at the same time. (or maybe in the correct order) there is a conflict and none get upgraded.
Thanks for your response, I had forgotten that I create a upgrade log file on the remote server. No telling when I would have remembered it was there.
Glad you got that sorted. Technically, for F21 and later, you should use "dnf" and not "yum". I've also found that, in the cases where installing (or upgrading) is sequence-sensitive, do it all in one command:
dnf -y upgrade vim-X11 vim-common vim-enhanced vim-minimal
or even
dnf -y upgrade vim*
and let dnf sort out the proper order, dependencies, yadda yadda. Don't use the wildcard for installs--just updates/upgrades. I also wouldn't specify version numbers unless you are specifically trying for a given version. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Reality: A crutch for those who can't handle science fiction - ----------------------------------------------------------------------