Re: reinstall gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think what you want to do is use rpm's verify option. From rpm's man page:

Verifying  a  package compares information about the installed files in the
package
       with information about the files taken from the package metadata
stored in the  rpm
       database.   Among  other things, verifying compares the size, MD5
sum, permissions,
       type, owner and group of each file.  Any discrepancies are
displayed.   Files  that
       were  not  installed from the package, for example, documentation
files excluded on
       installation using the "--excludedocs" option, will be silently
ignored.


man rpm will give you the details.

Good luck

Romeo

On Wed, Apr 30, 2008 at 5:39 PM, Bipin Baghele <kudgon@xxxxxxxxx> wrote:

> Hi,
> I have RHEL 4 update 6 server running ok but due to some application
> failure
> we believe that some gcc related files are corrupted and would like to
> reinstall gcc package.
> I do have the whole rpm source for RHEL 4 update 6 but tried updating
> using
> up2date command but does not update any files and says package is already
> installed. I dont want to remove the package and reinstall because of so
> many gcc packages (see below) and their interdependency.
> Is their a way I can reinstall all gcc package of same release, in this
> case
> install gcc on update 6 machine from update 6 rpm package list.
>
> # uname -a
> Linux gvl7015 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
> x86_64 x86_64 GNU/Linux
>
> # cat /etc/redhat-release
> Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
>
> # rpm -qa|grep gcc
> gcc-3.4.6-9
> gcc4-java-4.1.2-14.EL4
> gcc4-c++-4.1.2-14.EL4
> compat-gcc-32-3.2.3-47.3
> libgcc-3.4.6-9
> gcc-java-3.4.6-9
> compat-libgcc-296-2.96-132.7.2
> gcc-c++-3.4.6-9
> gcc4-4.1.2-14.EL4
> libgcc-3.4.6-9
> gcc-gnat-3.4.6-9
> compat-gcc-32-c++-3.2.3-47.3
> compat-gcc-32-c++-3.2.3-47.3
> gcc4-gfortran-4.1.2-14.EL4
> gcc-objc-3.4.6-9
> gcc-g77-3.4.6-9
> compat-gcc-32-3.2.3-47.3
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux