View previous topic :: View next topic |
Author |
Message |
dasalvagg Apprentice
Joined: 26 Jun 2002 Posts: 183 Location: NY
|
Posted: Sat Dec 22, 2007 5:25 pm Post subject: Bash script to find unmasked and keyworded packages |
|
|
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 |
|
|
marrowhk Apprentice
Joined: 25 Jul 2007 Posts: 250
|
Posted: Tue Dec 25, 2007 3:22 am Post subject: |
|
|
Neat little solution, thanks
. _________________ You'll always come back to GENTOOOOOOO ! (Trust me...) |
|
Back to top |
|
|
|
|
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
|
|