LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   gcc_install_uninstall (https://www.linuxquestions.org/questions/slackware-14/gcc_install_uninstall-494318/)

strycnine 10-21-2006 04:02 AM

gcc_install_uninstall
 
I want to install the latest gcc.
How do I uninstall the old one?

willysr 10-21-2006 05:09 AM

Code:

removepkg gcc

IvanPro 10-21-2006 09:14 PM

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

tuxdev 10-21-2006 09:47 PM

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.

willysr 10-22-2006 03:20 AM

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

tuxdev 10-22-2006 10:18 AM

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.


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