Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to configure apt-get to make unable to install specific package without setting version?

So, as a user I want to get an error if version is unspecified for package X only:

  • apt-get install X - returns error;
  • apt-get install X=1.3.2-5 - installed package successfully;
  • apt-get install Y - installed latest version of Y package.
share|improve this question
I think exactly what you want is impossible to implement, but you could use the so-called "APT pinning" to "pin" the packages of interest to specific versions so that they will be preferred when being installed without specifying a precise version. (Well, I'm just guessing your real use case...) – kostix Jul 5 '13 at 16:49

You must log in to answer this question.

Browse other questions tagged .