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

Re: keep specific versions of packages



Francesco Pietra <chiendarret@yahoo.com> writes:

> I want to avoid any modification from apt-get commands
> to 
>
> mpqc 2.3.1-0.2
>
> specially compiled for amd64 with libint (which is not
> included in the package of same version on debian
> repositories) and installed with dpkg. I.e., I want to
> avoid "downgrading" to a version without libint.
>
>>From "apt-cache show mpqc" version installed
> 2.3..1-0.2, though the list of dependencies does not
> show libint (which is in, because the software deals
> correctly with integrals that only libint allows to
> do)
>
> According to Silva's APT HOWTO I should manage with
> /etc/apt/preferences, though there is no such file or
> directory on my debiam amd64 etch,
> linux-image-2.6.18-3-amd64. Should I build a file
> "preferences" from scratch?
>
> I must say that I am not familiar with this aspect of
> apt.
>
> Thanks for advice
> francesco pietra

There are a few things you can do. One already discussed is
pinning. Here are some other options (in order of safety, lowest
first):

1. Put mpqc on "hold" with dpkg or in dselect.

apt will not change packages on hold unless you specifically ask for it.

2. Set an epoch of 666 and recompile mpqc. It will surley have a
higher version.

Without pining the highest version will be installed. But this might
interfere with packages with "Depends: mpqc (>= 2.4.0)" or similar.

3. Create a pseudo package

Package: mypackages
Version: 20070108-1
Priority: Required
Essential: yes
Depends: mpqc (= 2.3.1-0.2)

Updating mpqc would remove mypackages and that will ask you to type in
a long sentence to confirm. Apt tries real hard not to remove
essential packages.

MfG
        Goswin



Reply to: