![.run 패키지 자동 설치](https://linux55.com/image/58387/.run%20%ED%8C%A8%ED%82%A4%EC%A7%80%20%EC%9E%90%EB%8F%99%20%EC%84%A4%EC%B9%98.png)
단일 명령 실행에서 .run 파일(이 경우 xampp)을 자동으로 설치하려고 합니다. 이를 위해서는 사용자의 대화형 응답이 필요합니다.
이것은 수동 설치입니다:
sudo ./xampp-linux-1.8.3-5-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : **Y** (Cannot be edited)
XAMPP Developer Files [Y/n] :**n**
Is the selection above correct? [Y/n]: **Y**
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press **[Enter]** to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: **Y**
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
사용자 개입 없이 처음부터 다음 사용자 항목을 어떻게 미리 설정할 수 있습니까? [입력]인가요? 예
답변1
그리고 신비롭다
--optionfile <optionfile> Installation option file
와 결합할 문서를 찾을 수 없습니다 --mode unattended
.
그렇지 않으면, 나는 hackish echo -e "YNY\nY" | <command>
where will be에 <command>
약간의 성공을 거두었습니다 sudo ./xampp-linux-1.8.3-5-installer.run
. (참고로 저는 XAMPP가 아닌 EMC Networker 설치를 완료했습니다.)