[CentOS] Recover /usr/lib/libc.a

Sat Jan 30 11:56:53 UTC 2010
Lucian @ lastdot.org <lucian at lastdot.org>

On Sat, Jan 30, 2010 at 6:54 AM, Frank Cox <theatre at sasktel.net> wrote:
>
> On Sat, 2010-01-30 at 08:14 +0200, Zvi Vered wrote:
>> I did a mistake and erased libc.a from /usr/lib
>>
>> How can I recover it without reinstalling Centos ?
>
> /usr/lib/libc.a is provided as part of the glibc-devel rpm.
>
> If you merely erased the file with a rm command or something like that,
> you can probably just download the glibc-devel rpm from your friendly
> neighbourhood Centos mirror site, extract libc.a from it and copy it
> back into /usr/lib.
>
> Or you could download the glibc-devel rpm and use the rpm command with
> the "--replacepkgs" directive to reinstall the whole rpm.
>
> Either method should work.
>
> --
> MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Or just:
yum reinstall glibc-devel