由于实际项目是内网环境,在不搭建YUM仓库的情况下,是无法进行yum下载的,因此需要把已安装的软件包为离线安装包
# yum install -y redhat-lsb
对应软件包名是redhat-lsb-4.1-27.el7.centos.1.x86_64
# rpm -qi redhat-lsb-4.1-27.el7.centos.1.x86_64
# yumdownloader redhat-lsb-4.1-27.el7.centos.1.x86_64
得到软件包名字是redhat-lsb-4.1-27.el7.centos.1.x86_64.rpm
# find / -name redhat-lsb-4.1-27.el7.centos.1.x86_64.rpm
这样,就实现了导出CentOS 7已安装的软件包为离线安装包!