CentOS-7安装percona-xtrabackup出现依赖问题解决办法

简介
      一般出现依赖问题,是yum源的问题(这里不讨论rpm出现依赖的问题,rpm安装就将需要的包一同装上),有不少小伙伴是把yum源换成了自己本地CentOS7的镜像(我也是这样干的,哈哈),毕竟一个镜像就那么几个G,有很多安装包是镜像里没有的,所以安装一些软件时容易碰到依赖无法解决的问题。这是就体现了常备份的好处了。
解决办法
      可以将CentOS自带的官方yum源替代本地yum源或者更换国内大厂的yum源(网速快点)。
      这里我提供一份阿里yum源,小伙伴们可以将下面的代码复制一份,然后vim /etc/yum.repos.d/CentOS-Base(前面这部分可以改为自己喜欢的名字哦).repo
保存退出。接着更新yum 源 yum repolist
      最后再次yum安装你想安装的软件就可以了。


如多这篇文章对你有帮助,可以将这种方法分享出去,让更多的小伙伴知道,帮助面对问题还在迷茫的小伙伴,如果你不想再组织一次语言,可以直接复制我的文章然后发到你自己的博客上,我并不介意,毕竟这样能帮助到更多的小伙伴,能够帮助各位小伙伴本就是我写博客的初衷-------学习的路不应该设置围墙

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#released updates 
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
 
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/
        http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

你可能感兴趣的:(Linux操作系统,centos)