1. 程式人生 > >Yum離線安裝(二) --- 製作centos離線包

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