CentOS7 yum localinstall 命令解决RPM包安装依赖

安装RPM包时候缺少依赖,现在可以尝试使用yum localinstall + RPM包的方式解决,
以下方法只在Centos7上测试过。

[root@CentOS ~]# yum localinstall VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm
Loaded plugins: fastestmirror
Examining VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
Marking VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-6.0.x86_64 0:6.0.8_130520_el7-1 will be installed
--> Processing Dependency: libGL.so.1()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * epel: fedora.cs.nctu.edu.tw
 * extras: mirrors.cn99.com
 * updates: mirrors.aliyun.com
--> Processing Dependency: libICE.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libSM.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libX11-xcb.so.1()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libXmu.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
--> Processing Dependency: libXt.so.6()(64bit) for package: VirtualBox-6.0-6.0.8_130520_el7-1.x86_64
............

你可能感兴趣的:(CentOS7 yum localinstall 命令解决RPM包安装依赖)