LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to reinstall (https://www.linuxquestions.org/questions/linux-general-1/how-to-reinstall-534930/)

hegdeshashi 03-05-2007 10:51 PM

how to reinstall
 
Hi,

I want to reinstall gcc.
Can any one guide me?

PatrickNew 03-05-2007 11:00 PM

sure. What distro are you using?

hegdeshashi 03-05-2007 11:06 PM

am having Red Hat Enterprise edition-4.0

sn68 03-05-2007 11:11 PM

rpm -ivhf gcc-same.version.rpm

PatrickNew 03-05-2007 11:17 PM

Allright, google tells me that RHEL4 uses the up2date package manager, so the command would be something like this

Code:

up2date -fu gcc
the last part that said "gcc", might instead be "gcc-4.1" or whatever version you're after

hegdeshashi 03-05-2007 11:20 PM

I tried with rpm -ivhf gcc-4.1.2.i386.src.rpm
but I am not able to download!!!!!!!!!!

PatrickNew 03-05-2007 11:30 PM

Quote:

Originally Posted by hegdeshashi
I tried with rpm -ivhf gcc-4.1.2.i386.src.rpm

note the .src.rpm. Did you mean to grab the source rpm, not the precompiled? You can't download any rpm's? Hmm, well, do you still have the last one laying about? Then you could use

Code:

rpm -ivf <absolute location of the rpm>

hegdeshashi 03-05-2007 11:54 PM

I am not able to find the rpm location for gcc-4.1.2 or gcc-3.4.3

Can any one plz......

PatrickNew 03-05-2007 11:57 PM

if it's on you're computer, you can find it with

Code:

locate gcc-4.1*
and/or

Code:

locate gcc-3.4*

hegdeshashi 03-06-2007 12:10 AM

I think gcc-3.4* or gcc-4* is not there in my system.
But If I give gcc -v
it will give me the version gcc 3.4.3 20041412 ( Red Hat 3.4.3-9.EL4)

what is the solution?

sn68 03-06-2007 12:26 AM

download from http://rpm.pbone.net


All times are GMT -5. The time now is 10:02 PM.