Yum говорит: «wandisco-git-release-6-1.noarch.rpm: не обновляет установленный пакет». - PullRequest
0 голосов
/ 07 мая 2018

У меня Centos 6.7 и я запускаю эту команду

sudo yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm

И я получил этот вывод:

Loaded plugins: fastestmirror, post-transaction-actions
Setting up Install Process
wandisco-git-release-6-1.noarch.rpm                                                                                                                                                                                                                        | 4.5 kB     00:00     
Examining /var/tmp/yum-root-UthqQc/wandisco-git-release-6-1.noarch.rpm: wandisco-git-release-6-1.noarch
/var/tmp/yum-root-UthqQc/wandisco-git-release-6-1.noarch.rpm: does not update installed package.
Error: Nothing to do

Этот пакет просто имеет файл .repo в /etc/yum.repo.d/. Почему yum отказывается устанавливать его?

Ответы [ 2 ]

0 голосов
/ 27 ноября 2018

Этот скрипт помогает мне установить и обновить до последней версии Git и WANdisco yum repo.URL репо: https://github.com/saifulislamrokon/deployment/blob/master/installgit

#!/bin/bash

centosversion=`rpm -qa \*-release | grep -Ei "oracle|redhat|centos" | cut -d"-" -f3`
echo "######################################################################################################"
echo "CentOS $centosversion server detected, Git 2* will install and configre as per centos $centosversion"
echo "######################################################################################################"

if [ $centosversion -eq "6" ]; then
echo 
echo "# Git YUM repo installing as per Centos 6"
echo
yum install -y http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
echo
echo "Congratulations Wandisco YUM repo installed Successfully on the system "
echo
echo "Now installing Git on $hostname server"
yum install git -y
yum update git -y
fi

if [ $centosversion -eq "7" ]; then
echo 
echo "# Git YUM repo installing as per Centos 7"
echo
yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
echo
echo "Now installing Git on $hostname server"
yum install git -y
yum update git -y

fi 

clear

echo "GIT Latest version installed Successfully"
git --version

echo "Thanks :: Saiful Islam Rokon Akon"

exit 0
0 голосов
/ 07 мая 2018

Поскольку, очевидно, пакет wandisco-git-release уже установлен, но с версией выше, чем 6-1 .

Отсюда два пути:

...