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.

Just for curiosity, sometimes while installing software throught apt-get install software_name the terminal prompt me for a confirmation "type Yes or No", but not allways.

I dont mean the sudo password prompt, but the message "Will be downloaded and configrated XXX Kb, continue?" (or something similar)


share|improve this question

3 Answers 3

up vote 15 down vote accepted

It will usually ask you if there are suggested or recommended package that depend on the software you are attempting to install, It might also depend on the size of the program or security of the repository you are downloading from.

share|improve this answer
i thought the same motivations.. but i want to be secure of the answer –  Strae Aug 23 '10 at 7:41
Yes, this answer is correct. I'll add that you can (useful if you're trying to automate something) use the -y flag if you don't want to be prompted. –  Umang Aug 24 '10 at 12:47
@Umang: thanks for the hint, but i dont need to automate anything at the moment, was just a curiosity ;) –  Strae Aug 25 '10 at 14:38

From what I understand apt-get asks for confirmation only when there are additional dependencies to install. There is no way to force confirmation by default for all packages.

However, it is possible to force confirmation on any install command when using aptitude.

echo 'Aptitude::CmdLine::Always-Prompt "true";' | sudo tee -a /etc/apt/apt.conf.d/05aptitude
share|improve this answer

If you have typed "sudo -s" in terminal and "apt-get install software", then it will not ask you. But if you type "sudo apt-get install software" it will ask.

share|improve this answer
the question is about the yes/no confirmation rather than the password prompt. –  ImaginaryRobots Aug 23 '10 at 22:54

Your Answer


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.