LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   checking version of gcc on RH9 (https://www.linuxquestions.org/questions/linux-newbie-8/checking-version-of-gcc-on-rh9-244437/)

oasisbhrnw99 10-18-2004 09:53 PM

checking version of gcc on RH9
 
I use Redhat 9, how do I check which version of gcc I am running?

ranger_nemo 10-18-2004 10:14 PM

gcc -v

shortsword 10-18-2004 10:16 PM

Well one way on any Red Hat or Fedora Core distro or any other distro that uses RPM for package management is to enter:

Code:

rpm -q gcc
On my Fedora Core 2 machine that command returns,

Code:

gcc-3.3.3-7
So, my gcc is version 3.3.3-7.

Hope this helps,


All times are GMT -5. The time now is 07:25 PM.