Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to apt-get install without prompts

📅 2012-Dec-07 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ apt-get, ubuntu ⬩ 📚 Archive

apt-get install tends to throw lots of Yes or No prompts, asking if dependent packages need to be installed or not. If you are installing a package that is large or with lots of dependencies or installing a number of packages, answering these prompts keeps you from switching to do some work.

One solution is to request apt-get install to automatically answer Yes to all the Yes or Not prompts that might come up during installation.

To do that during an installation of a package Foo:

$ sudo apt-get install --yes Foo

Tried with: Ubuntu 12.04 LTS