跳转至

yum/rpm


列出仓库列表

Bash
1
2
3
4
yum repolist all
yum repolist all | grep xxx
yum-config-manager --disable xxx
yum-config-manager --enable xxx

查找动态库

Bash
1
yum whatprovides libxxx.so

查找安装包

Bash
1
yum search xxx

开发环境安装

Bash
1
yum group install "Development Tools"

离线下载安装包

Bash
1
yum install pakcage-name --downloadonly --downloaddir /path

安装本都包

Bash
1
yum localinstall xxx.rpm
如果软件有依赖,需要把依赖包和软件包软下载下来.
可以把软件以及对应的依赖一起升级.

安装离线包

Bash
1
2
rpm -ivh xxx.rpm # 安装
rpm -Uvh xxx.rpm #升级
如果需要安装得包有其他依赖,需要将依赖包升级包,都下载下来
Bash
1
yum localinstall xxx*.rpm

查找安装的包

Bash
1
rpm -qa | grep xxx

查看rpm包内容

Bash
1
rpm2cpio xxx.rpm | cpio -div