yum命令

更改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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值