Fedora 目前缺少最新版本的 git

Fedora 目前缺少最新版本的 git

所以,我目前运行的是 Fedora 27,尽管这个问题自 F26 以来就一直存在。问题是我无法通过正常的存储库更新 git。我很困惑为什么,因为我在互联网上找不到任何其他关于它的信息。

我当前的 Git 版本是2.14.3,应该是2.15.1

内容/etc/yum.repos.d如下

total 60
-rw-r--r--. 1 root root  342 Oct  8 15:25 _copr_davidva-deadbeef.repo
-rw-r--r--. 1 root root  322 Sep 27 18:56 _copr_numix-numix.repo
-rw-r--r--. 1 root root  707 Oct 25 06:41 fedora-cisco-openh264.repo
-rw-r--r--. 1 root root 1331 Oct 25 06:41 fedora.repo
-rw-r--r--. 1 root root 1345 Oct 25 06:41 fedora-updates.repo
-rw-r--r--. 1 root root 1403 Oct 25 06:41 fedora-updates-testing.repo
-rw-r--r--. 1 root root  258 Nov 16 20:24 hardware:razer.repo
-rw-r--r--. 1 root root 1248 Nov 14 07:17 rpmfusion-free.repo
-rw-r--r--. 1 root root 1245 Nov 14 07:17 rpmfusion-free-updates.repo
-rw-r--r--. 1 root root 1305 Nov 14 07:17 rpmfusion-free-updates-testing.repo
-rw-r--r--. 1 root root 1293 Nov 14 07:21 rpmfusion-nonfree.repo
-rw-r--r--. 1 root root 1290 Nov 14 07:21 rpmfusion-nonfree-updates.repo
-rw-r--r--. 1 root root 1350 Nov 14 07:21 rpmfusion-nonfree-updates-testing.repo
-rw-r--r--. 1 root root  148 Nov 27 12:38 skype-stable.repo
-rw-r--r--. 1 root root  207 Oct  9 03:14 slack.repo

这是我认为可能有用的所有相关信息。

sudo dnf info git

Failed to synchronize cache for repo 'davidva-deadbeef', disabling.
Failed to synchronize cache for repo 'numix-numix', disabling.
Last metadata expiration check: 2:49:40 ago on Tue 05 Dec 2017 18:46:43 NZDT.
Installed Packages
Name         : git
Version      : 2.14.3
Release      : 2.fc27
Arch         : x86_64
Size         : 2.5 M
Source       : git-2.14.3-2.fc27.src.rpm
Repo         : @System
From repo    : updates
Summary      : Fast Version Control System
URL          : https://git-scm.com/
License      : GPLv2
Description  : Git is a fast, scalable, distributed revision control system with an
             : unusually rich command set that provides both high-level operations
             : and full access to internals.
             : 
             : The git rpm installs common set of tools which are usually using with
             : small amount of dependencies. To install all git packages, including
             : tools for integrating with other SCMs, install the git-all meta-package.

sudo dnf install git(已经安装了 git)

Failed to synchronize cache for repo 'davidva-deadbeef', disabling.
Failed to synchronize cache for repo 'numix-numix', disabling.
Last metadata expiration check: 2:53:42 ago on Tue 05 Dec 2017 18:46:43 NZDT.
Package git-2.14.3-2.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

sudo dnf install git(卸载git后)

Failed to synchronize cache for repo 'davidva-deadbeef', disabling.
Failed to synchronize cache for repo 'numix-numix', disabling.
Last metadata expiration check: 2:55:24 ago on Tue 05 Dec 2017 18:46:43 NZDT.
Dependencies resolved.
===========================================================
 Package       Arch    Version              Repository
                                                      Size
===========================================================
Installing:
 git           x86_64  2.14.3-2.fc27        updates  1.1 M
Installing dependencies:
 git-core-doc  x86_64  2.14.3-2.fc27        updates  2.3 M
 perl-Error    noarch  1:0.17025-1.fc27     fedora    44 k
 perl-Git      noarch  2.14.3-2.fc27        updates   68 k

Transaction Summary
===========================================================
Install  4 Packages

Total download size: 3.5 M
Installed size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): perl-Git-2.14.3-2.f 512 kB/s |  68 kB     00:00    
(2/4): perl-Error-0.17025- 692 kB/s |  44 kB     00:00    
(3/4): git-2.14.3-2.fc27.x 2.6 MB/s | 1.1 MB     00:00    
(4/4): git-core-doc-2.14.3 3.2 MB/s | 2.3 MB     00:00    
-----------------------------------------------------------
Total                      1.1 MB/s | 3.5 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                   1/1 
  Installing       : perl-Error-1:0.17025-1.fc27.noa   1/4 
  Installing       : git-core-doc-2.14.3-2.fc27.x86_   2/4 
  Installing       : perl-Git-2.14.3-2.fc27.noarch     3/4 
  Installing       : git-2.14.3-2.fc27.x86_64          4/4 
  Running scriptlet: git-2.14.3-2.fc27.x86_64          4/4 
  Verifying        : git-2.14.3-2.fc27.x86_64          1/4 
  Verifying        : git-core-doc-2.14.3-2.fc27.x86_   2/4 
  Verifying        : perl-Git-2.14.3-2.fc27.noarch     3/4 
  Verifying        : perl-Error-1:0.17025-1.fc27.noa   4/4 

Installed:
  git.x86_64 2.14.3-2.fc27                                 
  git-core-doc.x86_64 2.14.3-2.fc27                        
  perl-Error.noarch 1:0.17025-1.fc27                       
  perl-Git.noarch 2.14.3-2.fc27                            

Complete!

应该指出的是,自 F27 以来,COPR 存储库一直无法运行,但在问题首次发生时仍在运行。

任何帮助将不胜感激 :)

答案1

正如可以看到的菩提git,适用于 Fedora 27的最新版本2.14.3;您所看到的行为是完全正常的。如果您想要更新版本的git,您必须自己构建它或从其他地方安装它。如果还没有这样做,您也可以提交错误,要求更新版本。 (2.15.1 是适用于 Fedora 28.)

相关内容