Summary: | How to re-install gcc and gcc-config? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jairo O. Pineros <pinerosj> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jairo O. Pineros
2005-01-15 17:27:59 UTC
version 2.6.9-gentoo you don't need to unmerge a package in order to reinstall it. the emerge process builds everything in a separate location, tests it, then installs it over the currently-installed version. The warning message is quite accurate in this case: !!! Trying to unmerge package(s) in system profile. 'sys-devel/gcc' !!! This could be damaging to your system. Its not completely hopeless for you. From a running system (or boot off the livecd and unpack a stage3 tarball into a separate drive/folder) you can then "quickpkg gcc ; quickpkg gcc-config" which will create two files with a .tbz2 extension in /usr/portage/packages/All. Those two files can be copied to your presently not-running-so-well system and unpacked with "cd / ; tar -xvjf /path/to/gcc-3*.tbz2 ; tar -xvjf /path/to/gcc-config*.tbz2" (insert the proper path to each of the files. Ignore the message about trailing data at the end of each of the tar commands. This will get you back to a compiler that exists though its probably no longer the most recent version, so emerge sync and emerge gcc-config and gcc again. And never unmerge them again. That makes bad things happen. |