AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 408874
Accepted
MicroTransactionsMatterToo
MicroTransactionsMatterToo
Asked: 2017-12-05 23:03:36 +0800 CST2017-12-05 23:03:36 +0800 CST 2017-12-05 23:03:36 +0800 CST

Fedora 目前缺少最新版本的 git

  • 772

所以,我目前正在运行 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!

应该注意的是,COPR 存储库自 F27 以来一直不起作用,但在问题首次出现时仍在运行。

任何帮助将不胜感激 :)

fedora software-installation
  • 1 1 个回答
  • 938 Views

1 个回答

  • Voted
  1. Best Answer
    Stephen Kitt
    2017-12-06T00:46:32+08:002017-12-06T00:46:32+08:00

    在Bodhi上可以看到git,Fedora 27 可用的最新版本是2.14.3;你看到的行为是完全正常的。如果您想要更新版本的git,则必须自己构建或从其他地方安装。如果尚未完成,您还可以提交一个错误,要求更新版本。(2.15.1适用于 Fedora 28。)

    • 5

相关问题

  • VirtualBox 无法在 Fedora 26 中安装

  • 使用触摸屏时如何禁用屏幕键盘?

  • 如何找出 nmcli 中缺少的插件?

  • 在 Debian 中编写 C#

  • 如何正确分区 SSD 以进行双启动设置

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    JSON数组使用jq来bash变量

    • 4 个回答
  • Marko Smith

    日期可以为 GMT 时区格式化当前时间吗?[复制]

    • 2 个回答
  • Marko Smith

    bash + 通过 bash 脚本从文件中读取变量和值

    • 4 个回答
  • Marko Smith

    如何复制目录并在同一命令中重命名它?

    • 4 个回答
  • Marko Smith

    ssh 连接。X11 连接因身份验证错误而被拒绝

    • 3 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Marko Smith

    systemctl 命令在 RHEL 6 中不起作用

    • 3 个回答
  • Marko Smith

    rsync 端口 22 和 873 使用

    • 2 个回答
  • Marko Smith

    以 100% 的利用率捕捉 /dev/loop -- 没有可用空间

    • 1 个回答
  • Marko Smith

    jq 打印子对象中所有的键和值

    • 2 个回答
  • Martin Hope
    EHerman JSON数组使用jq来bash变量 2017-12-31 14:50:58 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST
  • Martin Hope
    Drux 日期可以为 GMT 时区格式化当前时间吗?[复制] 2017-12-26 11:35:07 +0800 CST
  • Martin Hope
    AllisonC 如何复制目录并在同一命令中重命名它? 2017-12-22 05:28:06 +0800 CST
  • Martin Hope
    Steve “root”用户的文件权限如何工作? 2017-12-22 02:46:01 +0800 CST
  • Martin Hope
    Bagas Sanjaya 为什么 Linux 使用 LF 作为换行符? 2017-12-20 05:48:21 +0800 CST
  • Martin Hope
    Cbhihe 将默认编辑器更改为 vim for _ sudo systemctl edit [unit-file] _ 2017-12-03 10:11:38 +0800 CST
  • Martin Hope
    showkey 如何下载软件包而不是使用 apt-get 命令安装它? 2017-12-03 02:15:02 +0800 CST
  • Martin Hope
    youxiao 为什么目录 /home、/usr、/var 等都具有相同的 inode 编号 (2)? 2017-12-02 05:33:41 +0800 CST
  • Martin Hope
    user223600 gpg —list-keys 命令在将私钥导入全新安装后输出 uid [未知] 2017-11-26 18:26:02 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve