Linux下实现软件的静默安装
静默安装,可以使用下面的方案:1、用debconf-show + 包名查出预配置项root@compute204:/var/log/keystone# debconf-show slapd* slapd/password1: (password omitted)slapd/internal/adminpw: (password omitted)slapd/internal/g
·
静默安装,可以使用下面的方案:
1、用debconf-show + 包名查出预配置项
root@compute204:/var/log/keystone# debconf-show slapd
* slapd/password1: (password omitted)
slapd/internal/adminpw: (password omitted)
slapd/internal/generated_adminpw: (password omitted)
* slapd/password2: (password omitted)
cat <<LDAP_PRESEED | debconf-set-selections
slapd slapd/password1 password ${LDAP_PASS}
slapd slapd/password2 password ${LDAP_PASS}
LDAP_PRESEED
apt-get -y --force-yes install ldap-utils
1、用debconf-show + 包名查出预配置项
root@compute204:/var/log/keystone# debconf-show slapd
* slapd/password1: (password omitted)
slapd/internal/adminpw: (password omitted)
slapd/internal/generated_adminpw: (password omitted)
* slapd/password2: (password omitted)
...
cat <<LDAP_PRESEED | debconf-set-selections
slapd slapd/password1 password ${LDAP_PASS}
slapd slapd/password2 password ${LDAP_PASS}
LDAP_PRESEED
3、安装
apt-get -y --force-yes install slapdapt-get -y --force-yes install ldap-utils
更多推荐
已为社区贡献2条内容
所有评论(0)