Hello,

On Fri, 16 Jan 2009, Kenneth Gonsalves wrote:
> in debian, apt-get sometimes asks whether to proceed or not, and at other 
> times does not. Why is this?

The behaviour depends on the setting of the variable
APT::Get:Trivial-Only and APT::Get::Assume-Yes.

If you run "apt-get install pkgname" and this has no additional
dependencies then it will not prompt you since it is doing exactly
what you asked it to and nothing more.

On the other hand, if there are additional dependencies and
"Assume-Yes" is "False" then it will prompt you since it is
installing additional stuff. This may further depend on whether
recommended pacakges are among the dependencies etc.

The idea is "principle of least surprise". If you want to eliminate
surprise all together, then use the "--download-only" switch to
download the relevant packages before installing them. If you feel
that the surprise level is too high then set "Trivial-Only" to
"True".

Kapil.
--

_______________________________________________
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to