Skip to content
Advertisement

What does “-y” flag do? [closed]

sudo apt-get -y install python-pip

I was trying to install a package from a tutorial and cam across this line of code. I could not figure what is the function of ‘-y’ flag? What does ‘-y’ flag do in the above line of code?

Advertisement

Answer

Automatic yes to prompts; assume “yes” as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package, trying to install a unauthenticated package or removing an essential package occurs then apt-get will abort.

Advertisement