yum源里面没有pwgen,因此采用源码安装的方式:
wget http://sourceforge.net/projects/pwgen
如果下载下来的不能用,点击 Problems downloading 切换源手动下载
#解压:
[root@VM-16-6-centos ~]# tar xvzf pwgen-2.08.tar.gz pwgen-2.08/
安装
[root@VM-16-6-centos ~]# ./configure && make && make install
之后就可以使用了