What is the purpose of the `-y` flag when installing software with apt-get?

The -y flag in the apt-get install command automatically answers "yes" to any prompts that may occur during the installation process. This allows the installation to proceed without requiring user interaction, making it useful for scripting or when you want to install packages without being prompted for confirmation.

For example:

sudo apt-get install package-name -y

0 Comments

no data
Be the first to share your comment!