LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-21-2006, 04:02 AM   #1
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Rep: Reputation: 31
gcc_install_uninstall


I want to install the latest gcc.
How do I uninstall the old one?
 
Old 10-21-2006, 05:09 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
removepkg gcc
 
Old 10-21-2006, 09:14 PM   #3
IvanPro
LQ Newbie
 
Registered: Oct 2006
Location: Italia
Distribution: Slackware 11.0
Posts: 15

Rep: Reputation: 0
thanks willysr. i needed that kind of info too.

but... when using removepkg, you're automagically sure there are no remains of the install left on the system? I've noticed references to uninstallations in the "uninstalled-packages" directory... it would suffice to clean this directory to remove completely the traces of removed programs? what should I check to be sure? (I think this is important to know for a critical component like gcc).

regards.

IvanPro
 
Old 10-21-2006, 09:47 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Don't do that. In order to install the latest GCC, you may have to rebuild and reinstall the entire toolkit, as described in LFS. It is the main reason why LFS is considered masochistic.
 
Old 10-22-2006, 03:20 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Well, in my case, i have never downgraded GCC or uninstall it. I only tried to upgrade (since i'm using current) and so far i didn't have any problem with it.

I think Pat has tried to make sure that uninstallation will remove all files being installed at the installation phase
 
Old 10-22-2006, 10:18 AM   #6
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Whether the files are handled correctly is not the issue. It is that the compiler and the toolchain are closely tied together. The output from different versions of compilers can easily be incompatible too. Just don't, unless you really know what you are doing, or willing to pay the consequences.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration