Jump to content
Funtoo Linux
  • 0
Renich

GCC update

Question

Hello,

 

What is the correct way of updating gcc to 4.9.2?

 

It is asking for an unmask but I doubt it is the correct way of doing things.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

There are more than one level of masking software.

If You use the curren version (that use "amd64" and "~amd64"  you must simply unmask with

# echo "=sys-devel/gcc-4.9.2" >> /etc/portage/package.unmask

If You use the "stable branch" you 'll must unmask also in the file for low level masking keywords: 

# echo "=sys-devel/gcc-4.9.2 ~amd64" >> /etc/portage/package.accept_keywords

Then  start

# emerge -DNu1 world gcc

________________________ There are other ways , e.g. 

# emerge "=sys-devel/gcc-4.9.2" --autounmask-write

Then use etc-update or dispatch-conf

________________________________________

 

The last operation is to vrify what version of GCC will use the system:  

gcc-config -l

 
Automatically must be updated to the new version...... otherwise,
 

gcc-config -f X

(where X is the number relative at the gcc version that you want to use).

 

The ultimate command is to make an

# . /etc/profile

So You will use the new version of the compiler :P

 

When you'll make an

# emerge -c (-c = --deepclean)

After an

emerge -DNu world --with-bdeps=y

The previous version will be removed from your system.

 

Hello :)

Share this post


Link to post
Share on other sites
  • 0

You don't need to do the emerge @world if you don't want it.

After you unmasked and upgraded gcc (and switched to the newer version), just do:

emerge -1 libtool

And you're done.

Share this post


Link to post
Share on other sites
  • 0

My though to use emerge -DNu world is for have an idea about the "consistence" of the system

 

eventually

 

 

#revdep-rebuild

 

excuse me this is a litle off topic.......

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×