Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Uninstalled binutils by accident
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Jackie Lin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2017
Posts: 115

PostPosted: Fri Oct 12, 2018 2:42 pm    Post subject: Uninstalled binutils by accident Reply with quote

Hello,there.
I uninstalled sys-devel/binutils by accident. How can I install it again?
Thanks!
_________________
peace, focus.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Fri Oct 12, 2018 2:46 pm    Post subject: Reply with quote

You can download binary from here, put it in /usr/portage/packages/sys-devel/ and than run emerge -K binutils
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jackie Lin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2017
Posts: 115

PostPosted: Fri Oct 12, 2018 3:12 pm    Post subject: Reply with quote

Thanks!
_________________
peace, focus.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Oct 12, 2018 8:46 pm    Post subject: Reply with quote

Two pieces of cleanup. First,
Code:
emerge -K binutils
was slightly incorrect, resulting in binutils being added to your @world set, which might cause issues down the road. The command should've been
Code:
emerge -K1 binutils
(but don't run that now). To clean that up, run
Code:
emerge --deselect binutils
This doesn't uninstall anything bust just removes binutils from the @world set.

Second, since the binary you downloaded will not have been built with your exact local settings (selected compiler, USE flags, etc.), you should rebuild binutils from source. Minimally, that would be
Code:
emerge -1 binutils
All of this should be (relatively) quick and (totally) painless. ;)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Jackie Lin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2017
Posts: 115

PostPosted: Wed Oct 17, 2018 9:01 pm    Post subject: Reply with quote

Thanks a lot! John.
_________________
peace, focus.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum