Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.