What does-y mean when installed in apt-get
There is a command sudo apt-get install -y nodejs
, what is the-y parameter for?
0
2 answers
Without it, apt-get asks a clarifying question - "do you really want to install this?"
So the key is needed to "speed up" the installation by one press of Enter.
8
Author: gbg, 2016-06-16 05:53:42
Is it so hard to turn to Google? But it's not even that that bothers me anymore. You can not even go to Google, but to man.
Please read it:
man man
man apt-get
http://segfault.kiev.ua/smart-questions-ru.html
In
Man apt-get
They write in plain text:
-y, --yes, --assume-yes
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. Configuration Item: APT::Get::Assume-Yes.
And in google in the first link: https://www.opennet.ru/cgi-bin/opennet/man.cgi?topic=apt-get&category=8
-y, --yes, --assume-yes
Автоматически отвечать "да" в ответ на запрос программы; на все запросы,
которые будет выводить программа будет автоматически выдаваться ответ "да".
При возникновении нежелательной ситуации, как то: изменения пакета в состоянии
удержания или удаления необходимого для работы системы пакета, apt-get будет
аварийно завершать свою работу.
Элемент настройки: APT::Get::Assume-Yes.
4
Author: Crystal, 2016-06-16 06:09:31