Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Any tool to manipulate /etc/portage/package.use?
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
shallpion
Guru
Guru


Joined: 29 Sep 2008
Posts: 331

PostPosted: Thu Mar 11, 2010 8:50 am    Post subject: Any tool to manipulate /etc/portage/package.use? Reply with quote

I always use vim + echo to edit this file, until today I read an article by a poor guy who carelessly flushed this package.use by echo "balabala...">/etc/portage/package.use .... Is there any small tool to manipulate this file, safely and conveniently? Thanks.
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Thu Mar 11, 2010 9:25 am    Post subject: Reply with quote

Sounds like the poor guy made a mistake similar to using "rm -rf /". With power comes responsibility. Certainly all he would have to do is copy his package.use file from his backups to resolve the situation.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 11, 2010 11:48 am    Post subject: Reply with quote

Or use the package.use directory feature like package.keywords for kde4.
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Thu Mar 11, 2010 12:31 pm    Post subject: Reply with quote

emerge flagedit

flagedit dev-libs/nspr +blabla -eek
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Thu Mar 11, 2010 2:10 pm    Post subject: Reply with quote

My favorite is ufed.
Code:
zippy power.d # eix ufed
[I] app-portage/ufed
     Available versions:  0.40-r6 0.40-r10 ~0.40-r11 0.40.1
     Installed versions:  0.40.1(08:18:07 AM 02/10/2010)
     Homepage:            http://www.gentoo.org/
     Description:         Gentoo Linux USE flags editor

EDIT: My apologies. It finally sank in that you were asking about package.use. It doesn't look like ufed takes package.use settings into account, although it is great for working with the use flages in make.conf.
_________________
jfp
Back to top
View user's profile Send private message
shallpion
Guru
Guru


Joined: 29 Sep 2008
Posts: 331

PostPosted: Thu Mar 11, 2010 2:46 pm    Post subject: Reply with quote

Thanks you guys. I will give them a try ;)
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