답변:
비 대화식 프롬프트로 debconf를 구성 할 수 있습니다.
sudo DEBIAN_FRONTEND=noninteractive aptitude install -y -q chef
완전한 키를 찾으면 기본값을 사전 구성 할 수도 있습니다.
echo package package/key {boolean,string} {true, some string} | sudo debconf-set-selections
sudo apt-get install package
정확히 말하자면 :
echo chef chef/chef_server_url string | sudo debconf-set-selections
키를 찾으려면 설치 후 다음 을 찾을 수 있습니다.
sudo debconf-get-selections | grep chef
# URL of Chef Server (e.g., http://chef.example.com:4000):
chef chef/chef_server_url string
debconf-get-selections사용할 수 없으면 package 설치를 시도하십시오 debconf-utils.
debconf-show package(가 설치된 후)와 같은 방법으로 주어진 패키지에 사용할 수있는 모든 옵션을 표시 할 debconf-get-selections한 (경우는 debconf-get-selections없습니다)
debconf-get-selections사용할 수없는 경우debconf-show PACKAGENAME다음을 사용하십시오.