When does “apt-get install” ask me to confirm whether I want to continue or not?

Sometimes “apt-get install” asks me "Do you want to continue [Y/n]?":

<a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="97e5f8f8e3d7c3a3a4">[email protected]</a>:~# apt-get install chmsee
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libchm1
The following NEW packages will be installed:
  chmsee libchm1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 192 kB of archives.
After this operation, 848 kB of additional disk space will be used.
Do you want to continue [Y/n]?

Am I correct that this happens only if "The following NEW packages will be installed:" line has other packages(probably dependencies) listed than the one(s) I specified as an argument to "apt-get install"?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

From this Super User answer, the Do you want to continue? prompt appears when:

  • Extra packages (besides those you asked to install – e.g. dependencies) will be installed
  • Essential packages are to be removed. Essential here 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. Packages are tagged essential for a system using the Essential control field.
  • Changing a held package

If you want apt-get to automatically say yes (not a very good idea unless you have a very specific reason), you can use --yes --force-yes parameter.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x