I want to update the Git installed from the source.

Asked 2 years ago, Updated 2 years ago, 57 views

http://tomoyamkung.net/2014/08/27/linux-git-install/

I installed Git from the source in CentOS with this reference. The latest version has been released this time, so I would like to update it, but I don't know how to uninstall Git from the source.

Could you tell me how to do it in detail?

git centos

2022-09-30 20:29

2 Answers

I checked with my hand, but it seems that there is no make uninstall, so I have no choice but to erase it with my bare hands.

There may be other good ways, but after running make using the referenced URL method, for example,

for regular users.
$mkdir/tmp/test_root
$ make prefix=/tmp/test_root install

For example, after installing it on /tmp/test_root, you should delete it while checking the find/tmp/test_root-type f result file.(If you did not specify --prefix etc. at ./configure, it should be installed below /usr/local)

It's just a wild tar.gz, so it depends on the environment, but it might be okay to overwrite it with make install with the latest version of the sauce like a man.


2022-09-30 20:29

Another way is to use the git command.git has the following options:

 --exec-path
--html-path
--man-path
-- info-path

If you check the meaning of each option in mangit,

$find$(dirname$(which git)) - name "git*" -ls
$ for opt in html man info exec
  do
    find"$(git--${opt}-path)"-name"git*"-ls
  done

If so, I think I can check the installed file with low accuracy.For your information.


2022-09-30 20:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.