Yum离线安装(二) --- 制作centos离线包

1. 在干净系统中安装yum-downloadonly

yum install yum-downloadonly -y


2. 下载离线包

yum -y install ncurses ncurses-devel gcc-c++ libxml2-devel gd gd-devel libpng libpng-devel libjpeg libjpeg-devel libmcrypt libmcrypt-devel openldap-devel openldap-servers openldap-clients autoconf freetype-devel libtool-ltdl-devel openssl openssl-devel gcc automake autoconf libtool make --downloadonly --downloaddir=.


yum -y install GeoIP gmp libevent libmcrypt libtidy libXpm libxslt mhash mysql mysql-server nfs-utils nginx perl-DBD-MySQL perl-DBI php php-common php-fpm php-gd php-mbstring php-mcrypt php-mhash php-mysql php-pdo php-xml t1lib --downloadonly --downloaddir=.



3. 安装所有依赖包

rpm -Uvh --force --nodeps *.rpm


你可能感兴趣的:(Yum离线安装(二) --- 制作centos离线包)