On 2014-06-28 22:49, Nico Kadel-Garcia wrote:
On Fri, Jun 27, 2014 at 9:49 AM, Lamar Owen <[email protected]> wrote:
This is what 'yum distro-sync' is supposed to do (distro-sync full works
based on the package checksums, and is supposed to reinstall every single
package that has a different checksum than the currently pointed-to repos).
If it does not do it properly, it's a bug that needs to be filed against the
upstream yum.

Based on the tests I just did on SL 6.5, the "yum distro-sync" command
relies on package name, not checksums of the installed packages. I
have a local development repository for Samba and RT4 builds that I
do: I deleted and recompoiled the packages, and installed the rebuilt
packages of the same name in the yum repository.

Running "yum distro-sync" failed to detect any discrepancy and did not
re-install them.

Lamar wasn't very clear, perhaps, but it's `distro-sync full` that
relies on checksums. From the man-page (of Fedora 20):

    If you give the optional argument "full", then the command  will
    also  reinstall  packages  where  the  install  checksum and the
    available checksum do not match. And remove old packages (can be
    used to sync. rpmdb versions). The optional argument "different"
    can be used to specify the default operation.

Unfortunately, it seems that's not available in EL6. Presumably
Lamar has been dealing mostly with EL7 recently.

Reply via email to