@
hzqim 看 man apt_preferences ,有详细说明
· Never downgrade unless the priority of an available version exceeds
1000. ("Downgrading" is installing a less recent version of a package
in place of a more recent version. Note that none of APT's default
priorities exceeds 1000; such high priorities can only be set in the
preferences file. Note also that downgrading a package can be risky.)
· Install the highest priority version.
· If two or more versions have the same priority, install the most recent
one (that is, the one with the higher version number ).
· If two or more versions have the same priority and version number but
either the packages differ in some of their metadata or the --reinstall
option is given, install the uninstalled one.
1. 看版本号
2. 看 pin-priority
3&4. 如果版本号和优先级都相同,用其它规则
参考
http://forum.ubuntu.org.cn/viewtopic.php?f=15&t=472760在一个包已安装的情况下,再安装版本号和优先级完全相同的一个包时
指定了 --reinstall ? 是 --> 安装新包, 否 --> 下一步
元数据完全相同?是 --> 不安装(保留旧包),否 --> 安装新包
(credit to susbarbatus@forum.ubuntu.org.cn )