Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230407 - documentation mistake about "emerge -aC" : wrong suggestion. issue about version of gcc to remove after update
Summary: documentation mistake about "emerge -aC" : wrong suggestion. issue about ve...
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/gcc-upgr...
Whiteboard:
Keywords:
: 265664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-01 22:27 UTC by mike
Modified: 2009-04-10 16:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike 2008-07-01 22:27:40 UTC
instead of :

------------------------------------------------------------------------------
Code Listing 4.4: Rebuilding system

# emerge -e system

Cleaning up

It is also safe to remove older GCC versions at this time. Please substitute YOUR-NEW-GCC-VERSION with the actual version you've upgraded to:

Code Listing 4.5: Cleaning up

# emerge -aC "<sys-devel/gcc-YOUR-NEW-GCC-VERSION"
------------------------------------------------------------------------------

should be :

(...)
Cleaning up

It is also safe to remove older GCC versions at this time. Please substitute YOUR-OLD-GCC-VERSION with the actual version you've upgraded from:

Code Listing 4.5: Cleaning up

# emerge -aC "<sys-devel/gcc-YOUR-OLD-GCC-VERSION"
(..)


Reproducible: Always
Comment 1 nm (RETIRED) gentoo-dev 2008-07-01 23:18:41 UTC
Nope, read it again. See the < atom in front of the GCC version? This means "remove any version LESS THAN the specified version." Let's say you're upgrading from 4.1 to 4.2. Once the upgrade is complete, running "emerge -aC <gcc-4.2" will prompt to remove gcc 4.1, not 4.2.

The guide is correct.

Please read "man emerge" to learn more about atoms such as >, <, and =.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2009-04-10 16:37:04 UTC
*** Bug 265664 has been marked as a duplicate of this bug. ***