From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15643 invoked by alias); 5 Aug 2014 09:32:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15630 invoked by uid 89); 5 Aug 2014 09:32:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f176.google.com Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com) (209.85.212.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 05 Aug 2014 09:32:44 +0000 Received: by mail-wi0-f176.google.com with SMTP id bs8so6551115wib.15 for ; Tue, 05 Aug 2014 02:32:41 -0700 (PDT) X-Received: by 10.180.89.100 with SMTP id bn4mr5048054wib.34.1407231160988; Tue, 05 Aug 2014 02:32:40 -0700 (PDT) Received: from [192.168.1.27] (61.Red-88-20-93.staticIP.rima-tde.net. [88.20.93.61]) by mx.google.com with ESMTPSA id eh10sm5961651wic.0.2014.08.05.02.32.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 02:32:40 -0700 (PDT) Message-ID: <53E0A4B6.1090007@gmail.com> Date: Tue, 05 Aug 2014 09:32:00 -0000 From: =?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?= User-Agent: Thunderbird MIME-Version: 1.0 To: Jonathan Wakely CC: Syed Ahsan Ali Bokhari , gcc-help Subject: Re: How to uninstall pre-installed previous version and install new References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00029.txt.bz2 On 05/08/14 10:37, Jonathan Wakely wrote: > On 5 August 2014 04:45, Syed Ahsan Ali Bokhari wrote: >> My RHEL6.1 has pre installed gcc (GCC) 4.4.5 20110214 (Red Hat >> 4.4.5-6). I want to update it to latest version. I don't have red hat >> subscription and therefore I'll have to install from source. How can I >> uninstall this version > "yum erase gcc" but I would advise against doing that. > >> and install a more recent version of GCC. > It's a bad idea to replace the system compiler, just install a newer > version in a different path. Specially if you attempt to remove it before having the new one ready, as you won't be able to install from source (thus compil¡ng) the new version without a working compiler.