2013-03-18 1 views
6

apt-get을 사용하여 우분투 12.04에 mailutils를 설치하는 동안 수동 개입이 필요한 경우 두 번째로 사이트 구성을 먼저 선택하고 두 번째로 상자의 호스트 이름을 입력하십시오. 설치를 자동화하는 방법이 있습니까? 많은 서버에 패키지를 설치해야하며 n00b sys 관리자가되어 아직 솔루션을 찾을 수 없습니다. 나는 소스에서 만들거나 설치할 수 있지만 다른 문제가 있습니다. 고맙습니다.사용자 개입없이 apt-get을 사용하여 mailutils 설치

+0

의 사용 가능한 복제 [내가 dpkg를 자동화 할 수있는 방법/apt-get을?] (http://stackoverflow.com/questions/702248/how- can-i-automate-dpkg-apt-get) – tripleee

답변

8

당신은 답를 미리 선택하는 debconf-set-selections를 사용할 수 있습니다

$ debconf-set-selections <<< "postfix postfix/mailname string your.hostname.com" 
$ debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" 
$ apt-get install -y mailutils 
관련 문제