View previous topic :: View next topic |
Author |
Message |
uoslagelo Tux's lil' helper
Joined: 24 Jul 2009 Posts: 81
|
Posted: Sat Apr 03, 2010 1:20 pm Post subject: [RISOLTO] gestire (snellire) package.* |
|
|
Ciao gentooiniani,
non so se accade lo stesso nei vostri sistemi, ma i miei package.* sono diventati dei papiri. Vuoi un po per smanettamenti vari, prove ed esperimenti, diventa quasi inevitabile smascherare qualche ebuild (che con il tempo diventano un po più di qualche).
Mi stavo chiedendo se esistesse un tool che controlli se i pacchetti smascherati sono installati o meno. Nel caso in cui non fossero installati li elimina da package.keywords e company. Sarebbe veramente utile...
Last edited by uoslagelo on Sat Apr 03, 2010 2:10 pm; edited 1 time in total |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Sat Apr 03, 2010 1:55 pm Post subject: |
|
|
eix-test-obsolete però poi devi editarli a manina |
|
Back to top |
|
|
uoslagelo Tux's lil' helper
Joined: 24 Jul 2009 Posts: 81
|
Posted: Sat Apr 03, 2010 2:05 pm Post subject: |
|
|
ottimo! Chiedere qualcosa di automatizzato sarebbe stato troppo eheheh
Grazie per la dritta |
|
Back to top |
|
|
darkmanPPT Veteran
Joined: 13 Apr 2006 Posts: 1069 Location: vi/bo
|
Posted: Sat Apr 03, 2010 2:47 pm Post subject: |
|
|
un modo automatico c'e`
Code: | cat regenPackageKeywords.sh
#!/bin/sh
KEYWORDS="/etc/portage/package.keywords"
UNMASK="/etc/portage/package.unmask"
mv ${KEYWORDS} ${KEYWORDS}~
mv ${UNMASK} ${UNMASK}~
echo "Rewriting package.keywords"
equery -N l -i | sed -nre '/(M~|M | ~)/ s/(^.+\] | \(.+$)//gp' | sed -re 's/^/=/g' >> ${KEYWORDS}
echo "Rewriting package.unmask"
ALL=$(wc -l ${KEYWORDS} | awk '{print $1}')
COUNT=0
while read KEYWORD; do
COUNT=$[$COUNT + 1]
echo -ne " $[${COUNT} * 100 / ${ALL}]% finished\r"
emerge -pv ${KEYWORD} | grep "package.mask" &>/dev/null && echo ${KEYWORD} >> ${UNMASK}
done < ${KEYWORDS}
echo " "
echo "Done"
|
questo è lo script scaricato chissà quando e chissà dove (non ricordo) che mi sistema il package.* _________________ Darkman |
|
Back to top |
|
|
ago Developer
Joined: 01 Mar 2008 Posts: 1527 Location: Milan, Italy
|
Posted: Sat Apr 03, 2010 2:50 pm Post subject: Re: [RISOLTO] gestire (snellire) package.* |
|
|
uoslagelo wrote: | Mi stavo chiedendo se esistesse un tool che controlli se i pacchetti smascherati sono installati o meno. Nel caso in cui non fossero installati li elimina da package.keywords e company. Sarebbe veramente utile... |
Si può fare uno script che faccia il lavoro che ti serve |
|
Back to top |
|
|
|