How to do unattended install of WebSVN with apt-get?

假装没事ソ 提交于 2019-12-08 02:41:26

问题


Working with Ubuntu 10.10 ...

When installing WebSVN via apt-get with the following command:

sudo apt-get -y install websvn

It will pop 3 screens asking for configuration details (ie. where your SVN repositories are etc).

Is there a way to pass this information to this command so that the installation can occur unattended?

Thanks


回答1:


Almost all packages in Debian/Ubuntu use Debconf. You can pre-seed answers into debconf using the command debconf-set-selections. You need another tool debconf-get-selections to extract the answers you provided interactively. debconf-get-selections isn't installed by default, and doesn't need to be installed on the system you are installing to, but you will probably need to install it to extract your answers for the pre-seeding. This is part of the debconf-utils package.



来源:https://stackoverflow.com/questions/6964712/how-to-do-unattended-install-of-websvn-with-apt-get

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!