Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need help updating system
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
blakdeath
l33t
l33t


Joined: 21 Sep 2012
Posts: 604

PostPosted: Fri Apr 12, 2013 6:38 am    Post subject: need help updating system Reply with quote

I understand the -u updates the system, so now I need to run
emerge -u world to update my system, which is fine, however the handbook is a little cryptic imo when it comes to USE flags when updating
I always use USE="<use flags>" when emerging ANY package, so almost all my packages are using the non default USE flags

when I need to preserve the use flags for the updates, do I use --newuse or --changed-use
or is there another option



thanks
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1546

PostPosted: Fri Apr 12, 2013 6:52 am    Post subject: Reply with quote

You should consult the man pages, because the options don't do what you think they do. --newuse specifically looks for packages with use flag settings are different from the ones on the system, so invoking that option destroys all your command line modifications. You should generally never use USE="flags" because it is non persistent. Portage will never respect these during an update.

Global use flags should go in /etc/portage/make.conf Package specific ones should go in /etc/portage/package.use (you will need to create the file.) Use the following format <catagory>/<pacage> <flags>

Also note the color code portage uses. Red flags are active, blue flags are inactive and green flags which have changed from the previous install.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
blakdeath
l33t
l33t


Joined: 21 Sep 2012
Posts: 604

PostPosted: Fri Apr 12, 2013 12:35 pm    Post subject: Reply with quote

thanks for the heads up
and the colour part was EXTREMELY USEFUL

thanks :D
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2570
Location: Richmond, BC, Canada

PostPosted: Sat Apr 13, 2013 1:50 am    Post subject: Reply with quote

blakdeath Unless you store how you want the USE flags set in one of the config files, the next time you update those packages, you will loose those settings.

Code:
USE="foo" emerge baz
# time passes
emerge --sync
emerge -u baz
will install baz with foo set just the first time. during the update it will install the new baz with foo turned off.

You must save the settings in /etc/portage/make.conf's USE="foo" (applies foo to any pacakge) or in /etc/portage/pacakge.use (only for baz)

To fix you system. You can use "enalyse" from app-portage/gentoolkit to create a packcage.use file for you.
Code:
enalyze rebuild use

It will scan all your installed pkgs and create entries for any pkgs that have USE flags set differently than the defaults.
After it creates the file, you can load it in an editor and adjust any that are not what you desire. Then save it to the correct location and run
Code:
emerge --changed-use @world

_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
blakdeath
l33t
l33t


Joined: 21 Sep 2012
Posts: 604

PostPosted: Mon Apr 15, 2013 6:25 pm    Post subject: Reply with quote

I'll use that next time i mix things up
thanks :D
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