Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When we try to install applications using sudo apt-get install command, we are asked for permission before installing as follows,

Need to get 9,979 kB/11.6 MB of archives.
After this operation, 36.8 MB of additional disk space will be used.
Do you want to continue [Y/n]?

But this happens only for packages above certain size(it's somewhere about 100 KB, but I'm not sure). For small packages it skips this step.

Why is it so?
Can I force apt-get to show the message on installation of all packages?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

apt does not ask for confirmation depending upon the size, but the importance of the process that will take place. One of the instances is when packages are going to be installed that you didn't ask for. apt will also ask for confirmation when:

  • 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)

If you don't want the confirmation, you can override it with one of the following:

-y
-yes
--assume-yes

However, prompts for "essential packages" will still be displayed for safety reasons.

What are "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.

Source: Similar question on superuser.com

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.