[devel] В чем разница между Requires и PreReq в спеках?

Ivan Zakharyaschev imz на altlinux.org
Сб Май 12 12:50:33 MSK 2018


On Sat, 12 May 2018, Eugine Kosenko wrote:

> Народ, в чем разница между этими определениями, и какое из них
> предпочтительно для задании простой зависимости между пакетами?

Традиционно используются Requires.

Есть такие мнения:

https://www.redhat.com/archives/rpm-list/2003-June/msg00173.html :

"Not true. Requires: and PreReq: are exactly the same.

...

If you see a differnece between PreReq: and Requires: (ignoring dependency 
loops, different problem), then someting is broken.

..."

https://stackoverflow.com/a/27865060/94687 :

"The code in rpm-4.8.0 has chosen to remap Prereq: (which tries to force 
a package installation before current package) as if it were a 
Requires(pre): (which marks a require dependency needed by a %pre 
scriptlet)contrary to what was originally implemented in rpm.

Yes: dependency loops will be dealt with "best effort" so that an 
installation doesn't halt with dependency loops. ..."

http://ftp.rpm.org/api/4.4.2.2/dependencies.html :

"Prereqs are different from requires only in that a PreReq is guaranteed 
to be installed before the package that contains the PreReq. PreReq's are 
used only to order packages, otherwise PreReq's are exactly the same as a 
Requires: dependency."

-- 
Best regards,
Ivan


Подробная информация о списке рассылки Devel