git升级

#####################

一、卸载旧版本git

[root@a8-cloud-dba-db08 install_database]# yum remove git
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-24.el7_9 will be erased
--> Processing Dependency: git = 1.8.3.1-24.el7_9 for package: perl-Git-1.8.3.1-24.el7_9.noarch
--> Processing Dependency: git for package: gettext-devel-0.19.8.1-3.el7.x86_64
--> Running transaction check
---> Package gettext-devel.x86_64 0:0.19.8.1-3.el7 will be erased
--> Processing Dependency: gettext-devel for package: intltool-0.50.2-7.el7.noarch
---> Package perl-Git.noarch 0:1.8.3.1-24.el7_9 will be erased
--> Running transaction check
---> Package intltool.noarch 0:0.50.2-7.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================================================================================================================================================================================
 Package                                                                           Arch                                                                       Version                                                                              Repository                                                                     Size
=======================================================================================================================================================================================================================================================================================================================================
Removing:
 git                                                                               x86_64                                                                     1.8.3.1-24.el7_9                                                                     @updates                                                                       22 M
Removing for dependencies:
 gettext-devel                                                                     x86_64                                                                     0.19.8.1-3.el7                                                                       @anaconda                                                                     1.4 M
 intltool                                                                          noarch                                                                     0.50.2-7.el7                                                                         @anaconda                                                                     166 k
 perl-Git                                                                          noarch                                                                     1.8.3.1-24.el7_9                                                                     @updates                                                                       57 k

Transaction Summary
=======================================================================================================================================================================================================================================================================================================================================
Remove  1 Package (+3 Dependent packages)

Installed size: 24 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : intltool-0.50.2-7.el7.noarch                                                                                                                                                                                                                                                                                        1/4 
  Erasing    : gettext-devel-0.19.8.1-3.el7.x86_64                                                                                                                                                                                                                                                                                 2/4 
  Erasing    : git-1.8.3.1-24.el7_9.x86_64                                                                                                                                                                                                                                                                                         3/4 
  Erasing    : perl-Git-1.8.3.1-24.el7_9.noarch                                                                                                                                                                                                                                                                                    4/4 
  Verifying  : perl-Git-1.8.3.1-24.el7_9.noarch                                                                                                                                                                                                                                                                                    1/4 
  Verifying  : intltool-0.50.2-7.el7.noarch                                                                                                                                                                                                                                                                                        2/4 
  Verifying  : git-1.8.3.1-24.el7_9.x86_64                                                                                                                                                                                                                                                                                         3/4 
  Verifying  : gettext-devel-0.19.8.1-3.el7.x86_64                                                                                                                                                                                                                                                                                 4/4 

Removed:
  git.x86_64 0:1.8.3.1-24.el7_9                                                                                                                                                                                                                                                                                                        

Dependency Removed:
  gettext-devel.x86_64 0:0.19.8.1-3.el7                                                                           intltool.noarch 0:0.50.2-7.el7                                                                           perl-Git.noarch 0:1.8.3.1-24.el7_9                                                                          

Complete!
[root@a8-cloud-dba-db08 install_database]# ls

 

二、导入仓库

[root@a8-cloud-dba-db08 init]# rpm -ivh http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
Retrieving http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
warning: /var/tmp/rpm-tmp.nIUinq: Header V4 DSA/SHA1 Signature, key ID 3bbf077a: NOKEY
Preparing...                          ################################# [100%]
    package wandisco-git-release-7-1.noarch is already installed

 

 

 

三、升级git

[root@a8-cloud-dba-db08 init]# yum -y install git
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.ustc.edu.cn
 * centos-sclo-rh: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.ustc.edu.cn
 * updates: mirrors.ustc.edu.cn
WANdisco-git                                                                                                                                                                                                                                                                                                    | 2.9 kB  00:00:00     
WANdisco-git/7/x86_64/primary_db                                                                                                                                                                                                                                                                                | 157 kB  00:00:01     
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:2.39.1-1.WANdisco will be installed
--> Processing Dependency: perl-Git = 2.39.1-1.WANdisco for package: git-2.39.1-1.WANdisco.x86_64
--> Processing Dependency: perl(Git) for package: git-2.39.1-1.WANdisco.x86_64
--> Processing Dependency: perl(Digest::SHA) for package: git-2.39.1-1.WANdisco.x86_64
--> Processing Dependency: perl(Git::I18N) for package: git-2.39.1-1.WANdisco.x86_64
--> Running transaction check
---> Package perl-Digest-SHA.x86_64 1:5.85-4.el7 will be installed
--> Processing Dependency: perl(Digest::base) for package: 1:perl-Digest-SHA-5.85-4.el7.x86_64
---> Package perl-Git.noarch 0:2.39.1-1.WANdisco will be installed
--> Running transaction check
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================================================================================================================================================================================
 Package                                                                           Arch                                                                     Version                                                                               Repository                                                                      Size
=======================================================================================================================================================================================================================================================================================================================================
Installing:
 git                                                                               x86_64                                                                   2.39.1-1.WANdisco                                                                     WANdisco-git                                                                    12 M
Installing for dependencies:
 perl-Digest                                                                       noarch                                                                   1.17-245.el7                                                                          base                                                                            23 k
 perl-Digest-SHA                                                                   x86_64                                                                   1:5.85-4.el7                                                                          base                                                                            58 k
 perl-Git                                                                          noarch                                                                   2.39.1-1.WANdisco                                                                     WANdisco-git                                                                    23 k

Transaction Summary
=======================================================================================================================================================================================================================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 12 M
Installed size: 50 M
Downloading packages:
(1/4): perl-Digest-SHA-5.85-4.el7.x86_64.rpm                                                                                                                                                                                                                                                                    |  58 kB  00:00:00     
(2/4): perl-Digest-1.17-245.el7.noarch.rpm                                                                                                                                                                                                                                                                      |  23 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/WANdisco-git/packages/perl-Git-2.39.1-1.WANdisco.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 3bbf077a: NOKEY    0% [=                                                                                                                                          ]  20 kB/s | 100 kB  00:10:19 ETA 
Public key for perl-Git-2.39.1-1.WANdisco.noarch.rpm is not installed
(3/4): perl-Git-2.39.1-1.WANdisco.noarch.rpm                                                                                                                                                                                                                                                                    |  23 kB  00:00:00     
(4/4): git-2.39.1-1.WANdisco.x86_64.rpm                                                                                                                                                                                                                                                                         |  12 MB  00:00:12     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                                                                  1.0 MB/s |  12 MB  00:00:12     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-WANdisco
Importing GPG key 0x3BBF077A:
 Userid     : "WANdisco (http://WANdisco.com - We Make Software Happen...) <software-key@wandisco.com>"
 Fingerprint: 69c1 be83 da54 cbed 6889 72f8 e9f0 e922 3bbf 077a
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-WANdisco
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : perl-Digest-1.17-245.el7.noarch                                                                                                                                                                                                                                                                                     1/4 
  Installing : 1:perl-Digest-SHA-5.85-4.el7.x86_64                                                                                                                                                                                                                                                                                 2/4 
  Installing : git-2.39.1-1.WANdisco.x86_64                                                                                                                                                                                                                                                                                        3/4 
  Installing : perl-Git-2.39.1-1.WANdisco.noarch                                                                                                                                                                                                                                                                                   4/4 
  Verifying  : perl-Git-2.39.1-1.WANdisco.noarch                                                                                                                                                                                                                                                                                   1/4 
  Verifying  : 1:perl-Digest-SHA-5.85-4.el7.x86_64                                                                                                                                                                                                                                                                                 2/4 
  Verifying  : git-2.39.1-1.WANdisco.x86_64                                                                                                                                                                                                                                                                                        3/4 
  Verifying  : perl-Digest-1.17-245.el7.noarch                                                                                                                                                                                                                                                                                     4/4 

Installed:
  git.x86_64 0:2.39.1-1.WANdisco                                                                                                                                                                                                                                                                                                       

Dependency Installed:
  perl-Digest.noarch 0:1.17-245.el7                                                                          perl-Digest-SHA.x86_64 1:5.85-4.el7                                                                          perl-Git.noarch 0:2.39.1-1.WANdisco                                                                         

Complete!
[root@a8-cloud-dba-db08 init]# git --version
git version 2.39.1

 

 

 

 

 

 

 

 

 

 

 

 

 

  perl-Digest

###################################

posted @ 2023-04-18 19:33  igoodful  阅读(113)  评论(0编辑  收藏  举报