I have a CentOS 7 system. It has git 2.27.0 installed, but that install, for reasons we can't figure out, won't talk to our https gitlab instance. It keeps failing on "unable to find remote helper for 'https'".
So, I attempted to upgrade git, using 'sudo yum upgrade git', which claims there's no git package installed. But if I do a 'git --version', I get "git version 2.27.0". A "whereis git" gives me "git: /usr/local/bin/git". If I do a 'sudo yum remove git', I get "No match for argument: git, No Packages marked for removal".
I've tried installing git, which works, after a fashion. As in, a new git instance is installed on my system; I get lots of messages that the install worked fine and git 2.31.1 was installed. But if I do git version, I get again get 2.27.0. If I then remove git again, it removes my 2.31.1 version, and keeps the 2.27.0. But, again, yum claims it's not really there. The $PATH has /usr/local/bin before /usr/bin. I assume it's installing the newer copy in /usr/bin, then completely ignoring the copy already in /usr/local/bin.
So, is there a way to tell yum to remove the copy at /usr/local/bin? Because when I try to do 'sudo yum remove /usr/local/bin/git' I get "No match for argument: /usr/local/bin/git".