1.使用yumdownloadonly下载RPM包及依赖包
#下载yumdownloadonly插件
yum install yum-plugin-downloadonly
yum install --downloadonly --downloaddir=路径 安装包名
实例:yum install --downloadonly --downloaddir=/usr/local libXScrnSaver
rpm -Uvh --force --nodeps *.rpm
实例:rpm -Uvh --force --nodeps libXScrnSaver-1.2.2-6.1.el7.x86_64.rpm
出自:https://www.cnblogs.com/daofaziran/p/13149579.html
感谢