[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [apt] Disabling upgrade to insecure packages



On Sun, 12 Jan 2003 18:15:46 +0100, Vincent Lefevre <vincent@vinc17.org> wrote:
> On Sun, Jan 12, 2003 at 15:46:36 +0000, Faheem Mitha wrote:
>> Really? This is not what the apt_preferences man page says. In
>> particular
>> 
>> "Each package may be pinned to a specific version and each Packages
>> file has a priority for every package inside. The highest priority
>> assigned to a package is the one that is used."
>>  
>> I admit I haven't looked at the source code, so I don't know how this
>> is implemented, but it seems clear to me. Also, this is not just
>> theoretical. I have a bunch of X 4.1 packages installed, and the lines
>> in the apt preferences file prevent them from being upgraded to the
>> more recent 4.2 version. I thought this is what you were
>> after. Correct me if I was mistaken. 
> 
> But what if you want to allow the upgrade to 4.3 (or higher) when it
> becomes available? This is the problem.

You can remove those lines once 4.3 is available. There is no way for
apt to know which version you want to upgrade to unless you tell it.

If you want to just make a particular version (ie. 4.2) uninstallable,
then pin it to a sufficiently low priority, as I have outlined
elsewhere in the thread. This is generally not such a good strategy,
though, since minor upgrades will break this.

Apt can't read your mind, or do magic, you know. You need to tell it
what you want it to do.

                                                   Faheem.



Reply to: