1.安装epel-relaese-6.78.noarch包
sudo rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2.安装yum-downloadonly
[ccapp@localhost wxc]$ sudo yum install yum-downloadonly
Loaded plugins: fastestmirror, security
Determining fastest mirrors
epel/metalink | 6.6 kB 00:00
* base: mirror.bit.edu.cn
* epel: mirrors.yun-idc.com
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:00
epel | 4.2 kB 00:00
epel/primary_db | 5.7 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 18 kB 00:00
ftp | 4.0 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 65 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-downloadonly.noarch 0:1.1.30-14.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
yum-plugin-downloadonly noarch 1.1.30-14.el6 base 20 k
Transaction Summary
============================================================================================================================================================
Install 1 Package(s)
Total download size: 20 k
Installed size: 21 k
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-downloadonly-1.1.30-14.el6.noarch.rpm | 20 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : yum-plugin-downloadonly-1.1.30-14.el6.noarch 1/1
Verifying : yum-plugin-downloadonly-1.1.30-14.el6.noarch 1/1
Installed:
yum-plugin-downloadonly.noarch 0:1.1.30-14.el6
Complete!
3.下载所有salt-minion依赖包
sudo yum install --downloadonly --downloaddir=/home/ccapp/wxc salt-minion
4.安装salt-minion包时,提示如下信息
[mysql@localhost salt-minion]$ sudo rpm -ivh *.rpm
warning: libyaml-0.1.3-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
warning: m2crypto-0.20.2-9.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
python-crypto is needed by salt-0.17.2-2.el6.noarch
5.上述问题的解决方法,python-crypto的源安装包,在DVD镜像文件中有,直接把yum源指向DVD中的安装文件,yum安装即可。
sudo yum install python-crypto
Loaded plugins: fastestmirror, security
Determining fastest mirrors
ftp | 4.0 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
python-crypto x86_64 2.0.1-22.el6 ftp 159 k
Transaction Summary
============================================================================================================================================================
Install 1 Package(s)
Total download size: 159 k
Installed size: 565 k
Is this ok [y/N]: y
Downloading Packages:
python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-crypto-2.0.1-22.el6.x86_64 1/1
Verifying : python-crypto-2.0.1-22.el6.x86_64 1/1
Installed:
python-crypto.x86_64 0:2.0.1-22.el6
Complete!
sudo rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2.安装yum-downloadonly
[ccapp@localhost wxc]$ sudo yum install yum-downloadonly
Loaded plugins: fastestmirror, security
Determining fastest mirrors
epel/metalink | 6.6 kB 00:00
* base: mirror.bit.edu.cn
* epel: mirrors.yun-idc.com
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:00
epel | 4.2 kB 00:00
epel/primary_db | 5.7 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 18 kB 00:00
ftp | 4.0 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 65 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-downloadonly.noarch 0:1.1.30-14.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
yum-plugin-downloadonly noarch 1.1.30-14.el6 base 20 k
Transaction Summary
============================================================================================================================================================
Install 1 Package(s)
Total download size: 20 k
Installed size: 21 k
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-downloadonly-1.1.30-14.el6.noarch.rpm | 20 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : yum-plugin-downloadonly-1.1.30-14.el6.noarch 1/1
Verifying : yum-plugin-downloadonly-1.1.30-14.el6.noarch 1/1
Installed:
yum-plugin-downloadonly.noarch 0:1.1.30-14.el6
Complete!
3.下载所有salt-minion依赖包
sudo yum install --downloadonly --downloaddir=/home/ccapp/wxc salt-minion
4.安装salt-minion包时,提示如下信息
[mysql@localhost salt-minion]$ sudo rpm -ivh *.rpm
warning: libyaml-0.1.3-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
warning: m2crypto-0.20.2-9.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
python-crypto is needed by salt-0.17.2-2.el6.noarch
5.上述问题的解决方法,python-crypto的源安装包,在DVD镜像文件中有,直接把yum源指向DVD中的安装文件,yum安装即可。
sudo yum install python-crypto
Loaded plugins: fastestmirror, security
Determining fastest mirrors
ftp | 4.0 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
python-crypto x86_64 2.0.1-22.el6 ftp 159 k
Transaction Summary
============================================================================================================================================================
Install 1 Package(s)
Total download size: 159 k
Installed size: 565 k
Is this ok [y/N]: y
Downloading Packages:
python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-crypto-2.0.1-22.el6.x86_64 1/1
Verifying : python-crypto-2.0.1-22.el6.x86_64 1/1
Installed:
python-crypto.x86_64 0:2.0.1-22.el6
Complete!