Re: reinstall gcc



Would the rpm "--replacepkgs" option do the trick?

Bipin Baghele 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



Relevant Pages

  • reinstall gcc
    ... 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. ... Is their a way I can reinstall all gcc package of same release, ...
    (RedHat)
  • Re: Linux C++ compiler
    ... get a recommendation for a good one in Linux and how to install it. ... You need the gcc package: ... The gcc package contains the GNU Compiler Collection version 4.4. ...
    (Fedora)
  • Re: FreePascal
    ... Using gcc to build gcc ... is just another compile. ... A poster further up the stated that because Ubuntu builds packages from ... Ubuntu should not have a gcc package because to build ...
    (Ubuntu)
  • Re: apt-get + latest package versions
    ... Alex Greg wrote: ... The gcc package is an example of ... in stable the latest version of gcc is 2.95.4-14, ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)
  • RE: gcc error
    ... I don't think gcc install of an older version ... will be a problem - it's only the C compiler. ... found the application that compile with gcc3.4 or highter run on RHEL ...
    (RedHat)