Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
newuse script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ianwilder
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 121
Location: georgia.usa.earth

PostPosted: Tue Jun 28, 2005 2:18 pm    Post subject: newuse script Reply with quote

As I'm sure a great many of you noticed,
Code:
emerge --newuse world
doesn't always find everything. Thanks to the Gentoo developers for making this a part of emerge, but as it doesn't always work, I made this.

Code:
newuse () { echo -n "emerge " > temprun-`date +%Y%m%d`.sh && chmod +x temprun-`date +%Y%m%d`.sh && emerge -epv world | grep "*" | awk '{print $4}' | grep -v portage | while read a ; do echo -n "=$a " >> temprun-`date +%Y%m%d`.sh ; done && ./temprun-`date +%Y%m%d`.sh ; rm temprun-`date +%Y%m%d`.sh ; }


Just copy and paste into a root terminal, and run newuse.

This will re-emerge everything that has changed useflags.

Let me know if there's anything else you'd like to see it do, and enjoy!
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Tue Jun 28, 2005 10:45 pm    Post subject: Reply with quote

Doesn't work

Code:
emerge: please tell me what to do.


Usage:
   emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help [ system | config | sync ]
Options: -[abcCdDefhikKlnoOpPsSuUvV] [--oneshot] [--newuse] [--noconfmem]
                                    [--columns] [--nospinner]
Actions: [ --clean | --depclean | --inject | --prune | --regen | --search | --unmerge ]


   For more help try 'emerge --help' or consult the man page.

Back to top
View user's profile Send private message
ianwilder
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2004
Posts: 121
Location: georgia.usa.earth

PostPosted: Wed Jun 29, 2005 1:13 am    Post subject: Reply with quote

Please excuse my lack of error trapping. :wink: This is the result if there are no packages to re-emerge. Your portage tree is fine!

Basically, you are telling gentoo to emerge nothing, so that's why it asks "please tell me what to do"
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Wed Jun 29, 2005 8:12 am    Post subject: Reply with quote

Ah well. Thank you very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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