Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bash script to find unmasked and keyworded packages
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
dasalvagg
Apprentice
Apprentice


Joined: 26 Jun 2002
Posts: 183
Location: NY

PostPosted: Sat Dec 22, 2007 5:25 pm    Post subject: Bash script to find unmasked and keyworded packages Reply with quote

I always have about half my system running on hard masked, missing keyword, or ~x86 packages, so I wrote this script to check if the package, or list of packges i'm emerging is already in /etc/portage/package.*

Code:

PACKAGES=`emerge -p --quiet --columns $* | awk '{print $2}'`

for i in $PACKAGES;
do
        grep --color $i /etc/portage/package.*
done


Pass in the packages you want to check as an argument ex.
Code:

mitoo ~ # ./findMasks.sh world
/etc/portage/package.keywords:dev-java/java-sdk-docs ~x86
/etc/portage/package.keywords:#dev-libs/apr-util ~x86
/etc/portage/package.keywords:#dev-libs/apr ~x86
/etc/portage/package.keywords:x11-libs/wxGTK ~x86
/etc/portage/package.keywords:x11-drivers/xf86-input-evdev ~x86
/etc/portage/package.unmask:xfce-base/orage
/etc/portage/package.keywords:dev-util/cmake ~x86
/etc/portage/package.unmask:dev-util/cmake
Back to top
View user's profile Send private message
marrowhk
Apprentice
Apprentice


Joined: 25 Jul 2007
Posts: 250

PostPosted: Tue Dec 25, 2007 3:22 am    Post subject: Reply with quote

Neat little solution, thanks
.
_________________
You'll always come back to GENTOOOOOOO ! (Trust me...)
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