LINUX.ORG.RU
ФорумAdmin

/etc/apt/preferences


0

0

Не получается сохранить самособранный пакет при обновлении!

$cat /etc/apt/preferences
Package: ejabberd
Pin: version 1.1.2-1.1
Pin-Priority: 100

При apt-get upgrade система предлагает мне обновить его!
Пакеты, которые будут обновлены:
ejabberd (1.1.2-1.1 => 1.1.2-1.1)

Куда копать?

Ответ на: комментарий от Warrior_Of_The_Light

Нашел немного другой метод:
$dpkg --get-selections > myselections
открываем myselections
находим свой пакет
меняем состояние на hold
$dpkg --set-selections < myselections

ИМХО это некошерно, поэтому все таки хотелось разобраться с /etc/apt/preferences!

Warrior_Of_The_Light
() автор топика
Ответ на: комментарий от Warrior_Of_The_Light

man apt_preferences 
Package: ejabberd
Pin: version 1.1.2-1.1
Pin-Priority: 1001

tugrik ★★
()
Ответ на: комментарий от Zulu

How APT Interprets Priorities
       Priorities (P) assigned in the APT preferences file must be positive or negative integers. They are interpreted as follows (roughly speaking):

       P > 1000
              causes a version to be installed even if this constitutes a downgrade of the package

       990 < P <=1000
              causes a version to be installed even if it does not come from the target release, unless the installed version is more recent

       500 < P <=990
              causes a version to be installed unless there is a version available belonging to the target release or the installed version is more recent

       100 < P <=500
              causes a version to be installed unless there is a version available belonging to some other distribution or the installed version  is  more recent

       0 < P <=100
              causes a version to be installed only if there is no installed version of the package

       P < 0  prevents the version from being installed


Ставлю 1001 все равно обновляться хочет!!

Warrior_Of_The_Light
() автор топика
Ответ на: комментарий от Warrior_Of_The_Light

Херь какая-то.

Во-первых, какой апдейт? И там и там одна и та же версия.
Во-вторых, что есть "Фиксатор"? Холд что ли поставил? Обычно все проблемы показывают по-английски.
В-третьих, приоритет явно не прокатил: из полиси видно, что он 100 (цифра перед репозиторием).

Zulu ★★☆☆
()
Ответ на: комментарий от Zulu

Да, делал холд с помощью echo "ejabberd hold" | dpkg --set-selection
У меня локаль ru_UA.CP1251, так надо :(
Перед репозиторием я вижу 500, а вот в базе dpkg 100!

Warrior_Of_The_Light
() автор топика
Ответ на: комментарий от Warrior_Of_The_Light

А кто тебе мешает сказать
~$ LANG=C apt-cache policy ...
?

Zulu ★★☆☆
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.