Saturday, 9 February 2019

package management - Why does apt-get sometimes asks for confirmation?


Sometimes it does this:


After this operation, 713kB of additional disk space will be used.
Do you want to continue [Y/n]?

And sometimes not, and just assumes 'yes' and downloads automatically (I can't paste the actual output because I don't know how to reproduce it).


Why?



Answer



The confirmation dialog will not only appear when you would install packages you didn't ask for, but also in the following cases:



  • Installing packages that you didn't specifically want to install

  • Removal of essential packages

  • Changing a held package (a held package is one you want to keep in the version currently installed)


You can override it with one of the following switches:



  • -y

  • -yes

  • --assume-yes


Which acts as if you answered yes to all those questions. However, prompts for essential packages will still be displayed for safety reasons.


Essential packages:



Essential is defined as the minimal set of functionality that must be available and usable on the system at all times, even when packages are in an unconfigured (but unpacked) state.



Thanks to @Liori for pointing that out.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...