百胜说 "wandisco-git-release-6-1.noarch.rpm: does not update installed package."
Yum says "wandisco-git-release-6-1.noarch.rpm: does not update installed package."
我有 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
这个包在 /etc/yum.repo.d/ 中只有一个 .repo 文件。为什么 yum 拒绝安装它?
因为显然包 wandisco-git-release 已经安装,但版本高于 6-1.
这里有两种方法:
- 如果需要升级,请查找更新版本的 wandisco-git-release
- 强制降级:
yum downgrade http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
这个脚本帮助我安装和升级到最新版本的 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
我有 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
这个包在 /etc/yum.repo.d/ 中只有一个 .repo 文件。为什么 yum 拒绝安装它?
因为显然包 wandisco-git-release 已经安装,但版本高于 6-1.
这里有两种方法:
- 如果需要升级,请查找更新版本的 wandisco-git-release
- 强制降级:
yum downgrade http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
这个脚本帮助我安装和升级到最新版本的 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