SCIENTIFIC-LINUX-USERS Archives

June 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Elias Persson <[log in to unmask]>
Reply To:
Elias Persson <[log in to unmask]>
Date:
Mon, 30 Jun 2014 10:00:07 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
On 2014-06-28 22:49, Nico Kadel-Garcia wrote:
> On Fri, Jun 27, 2014 at 9:49 AM, Lamar Owen <[log in to unmask]> 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.

ATOM RSS1 RSS2