更改yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all # 清除系统所有的yum缓存
yum makecache # 生成yum缓存
yum -y update
yum repolist all #查看所有的yum源
yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis -y
1. 查找fuser命令包含在那个安装包里
# yum provides fuser
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.jdcloud.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirror.jdcloud.com
* updates: ap.stykers.moe
base/7/x86_64/filelists_db | 7.1 MB 00:00:00
docker-ce-stable/x86_64/filelists_db | 13 kB 00:00:00
epel/x86_64/filelists_db | 11 MB 00:00:00
extras/7/x86_64/filelists_db | 236 kB 00:00:00
updates/7/x86_64/filelists_db | 2.7 MB 00:00:00
psmisc-22.20-15.el7.x86_64 : Utilities for managing processes on your system
源 :base
匹配来源:
文件名 :/usr/sbin/fuser
# yum -y install psmisc
查找libstdc++.so.6
yum whatprovides libstdc++.so.6
找到libstdc++-4.8.5-36.el7_6.1.i686 : GNU Standard C++ Library
yum -y install libstdc++
yum whatprovides libgthread-2.0.so*
2. yum找不到某些安装包,执行如下操作
yum install epel-release
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -Uvh epel-release*rpm
yum install lttng-ust -y
3.yum 删除
yum list installed | grep ceph
yum remove ceph* -y
CentOS6/7~配置多个yum源,并设置优先级
http://www.mamicode.com/info-detail-2238989.html
Centos7 配置本地源+阿里yum源/epel-yum+修改优先级
https://blog.csdn.net/conling_/article/details/70399694
centos7配置国内yum源
https://www.cnblogs.com/jpfss/p/10929258.html