Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] gestire (snellire) package.*
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
uoslagelo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2009
Posts: 81

PostPosted: Sat Apr 03, 2010 1:20 pm    Post subject: [RISOLTO] gestire (snellire) package.* Reply with quote

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
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sat Apr 03, 2010 1:55 pm    Post subject: Reply with quote

eix-test-obsolete però poi devi editarli a manina
Back to top
View user's profile Send private message
uoslagelo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2009
Posts: 81

PostPosted: Sat Apr 03, 2010 2:05 pm    Post subject: Reply with quote

ottimo! Chiedere qualcosa di automatizzato sarebbe stato troppo eheheh

Grazie per la dritta
Back to top
View user's profile Send private message
darkmanPPT
Veteran
Veteran


Joined: 13 Apr 2006
Posts: 1069
Location: vi/bo

PostPosted: Sat Apr 03, 2010 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Sat Apr 03, 2010 2:50 pm    Post subject: Re: [RISOLTO] gestire (snellire) package.* Reply with quote

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 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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