View previous topic :: View next topic |
Author |
Message |
HunterD Apprentice
Joined: 10 Mar 2004 Posts: 165
|
Posted: Mon May 03, 2004 2:22 pm Post subject: ebuild aggiornati.... |
|
|
C'è un modo per sapere ad ogni sync quali sono gli ebuild aggiornati ?
L'output di emerge sync non è molto chiaro a proposito... |
|
Back to top |
|
|
Danilo l33t
Joined: 05 Feb 2004 Posts: 747 Location: Italy
|
Posted: Mon May 03, 2004 3:01 pm Post subject: Re: ebuild aggiornati.... |
|
|
HunterD wrote: | C'è un modo per sapere ad ogni sync quali sono gli ebuild aggiornati ?
L'output di emerge sync non è molto chiaro a proposito... |
Temo di non aver capito: quali sono i pacchetti aggiornati?
Se fosse cosi' puoi usare esync. Richiede rsync se ricordo bene, il problema e' solo se hai un firewall che non te loi lascia passare.
Se esync funge:
- fa quello che fa emerge sync
- indicizza gli ebuild per farti usare esearch (al posto di emerge -S)
- stampa a video i nuovi/upgradati pacchetti
Prima o poi trovero' un momento per aprire esync ed isolare solo l'ultima azione. |
|
Back to top |
|
|
HunterD Apprentice
Joined: 10 Mar 2004 Posts: 165
|
Posted: Mon May 03, 2004 3:47 pm Post subject: |
|
|
Intedevo proprio l'ultima azione
Quote: |
- stampa a video i nuovi/upgradati pacchetti
|
|
|
Back to top |
|
|
silian87 Advocate
Joined: 06 Oct 2003 Posts: 2318 Location: Treviso, Italy
|
|
Back to top |
|
|
morellik l33t
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Mon May 03, 2004 3:59 pm Post subject: |
|
|
dopo di che' invece di usare emerge sync usi esync
che fa' la stessa operazione di emerge sync ed in piu' aggiorna un
database dei pacchetti per ricerche veloci (usando esearch),
ti stampa i pacchetti che sono nuovi rispetto all'ultimo sync
e quelli che eventualmente sono da aggiornare con un piccolo
riassunto del pacchetto.
ciauz
morellik |
|
Back to top |
|
|
HunterD Apprentice
Joined: 10 Mar 2004 Posts: 165
|
Posted: Mon May 03, 2004 4:26 pm Post subject: |
|
|
Bene allora passerò di sicuro ad esync |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Mon May 03, 2004 4:33 pm Post subject: |
|
|
Per chi non volesse usare esync lo script seguente fa lo stesso lavoro. Questo e' stato scritto da un mio amico
Code: | #!/bin/sh
BASE=/var/cache
USE_COLORS=yes
USE_WEBRSYNC=no
# end user configuration section
. /etc/make.globals
BEFORE=$BASE/ebuild-rsync.before
AFTER=$BASE/ebuild-rsync.after
NEW=$BASE/ebuild-rsync.new
REMOVED=$BASE/ebuild-rsync.removed
if [ "$USE_COLORS" == "yes" ]; then
RED="\033[;31m"
GREEN="\033[;32m"
NORMAL="\033[m"
fi
function portagetree () {
find $PORTDIR -type d -mindepth 2 -maxdepth 2
}
function dorsync () {
if [ "$USE_WEBRSYNC" == "yes" ]; then
emerge-webrsync $@
else
emerge $@ rsync
fi
}
# avoid syntax errors
function inherits () {
return
}
function inherit () {
return
}
# do it
portagetree >$BEFORE
dorsync
portagetree >$AFTER
diff $BEFORE $AFTER | grep ">" | sed "s/> //g" > $NEW
diff $BEFORE $AFTER | grep "<" | sed "s/< //g" > $REMOVED
# cleanup
#rm $BEFORE $AFTER
# display new ebuilds
if ! diff -q $NEW /dev/null >/dev/null; then
echo
echo New ebuilds:
for i in $(cat $NEW); do
DESCRIPTION="$i/*.ebuild ${RED}does not exist$NORMAL"
EBUILD=$(ls $i/*.ebuild --sort=time 2>/dev/null | head -n 1)
[ -z "$EBUILD" ] || . $EBUILD
echo -e $GREEN${i##$PORTDIR/}$NORMAL: $DESCRIPTION
done
fi
# display removed ebuilds
if ! diff -q $REMOVED /dev/null >/dev/null; then
echo
echo Removed ebuilds:
for i in $(cat $REMOVED); do
echo -e $RED${i##$PORTDIR/}$NORMAL
done
fi
|
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
HunterD Apprentice
Joined: 10 Mar 2004 Posts: 165
|
Posted: Tue May 04, 2004 8:05 am Post subject: |
|
|
Beh che dire... Comodo esync ma molto lento !! Forse perchè ho dovuto fare anche eupdatedb che ci ha messo il suo tempo... confido nello script postato da fedeliallalinea per tempi più contenuti |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Tue May 04, 2004 8:24 am Post subject: |
|
|
HunterD wrote: | Beh che dire... Comodo esync ma molto lento !! Forse perchè ho dovuto fare anche eupdatedb che ci ha messo il suo tempo... confido nello script postato da fedeliallalinea per tempi più contenuti |
esync = emerge sync + updatedb, quindi e' normale che ci metta molto. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Marculin Guru
Joined: 24 Feb 2004 Posts: 376
|
Posted: Tue May 04, 2004 9:43 am Post subject: |
|
|
quindi se uso esearch l'esync non serve?perchè esync esegue updatedb e non eupdatedb :s |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Tue May 04, 2004 9:45 am Post subject: |
|
|
Marculin wrote: | quindi se uso esearch l'esync non serve?perchè esync esegue updatedb e non eupdatedb :s |
Ho sbagliato esegue eupdatedb scusa. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Marculin Guru
Joined: 24 Feb 2004 Posts: 376
|
Posted: Tue May 04, 2004 9:57 am Post subject: |
|
|
benissimo allora...lo userò da ora in poi grazie |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Tue May 04, 2004 9:58 am Post subject: |
|
|
Marculin wrote: | benissimo allora...lo userò da ora in poi grazie |
Si te lo consiglio quello script e' fatto bene ma anche io mi trovo meglio con esync e eserch. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
morellik l33t
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Tue May 04, 2004 10:18 am Post subject: |
|
|
HunterD wrote: | Beh che dire... Comodo esync ma molto lento !! Forse perchè ho dovuto fare anche eupdatedb che ci ha messo il suo tempo... confido nello script postato da fedeliallalinea per tempi più contenuti |
E' comunque lento la prima volta che lo fai, dato che il DB deve essere inizializzato.
Poi e' molto piu' veloce.
Ciauz
morellik |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Tue May 04, 2004 10:22 am Post subject: |
|
|
morellik wrote: | E' comunque lento la prima volta che lo fai, dato che il DB deve essere inizializzato.
Poi e' molto piu' veloce. |
Mica tanto visto che ad ogni esync ricrea comunque il db. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Danilo l33t
Joined: 05 Feb 2004 Posts: 747 Location: Italy
|
Posted: Tue May 04, 2004 10:45 am Post subject: |
|
|
fedeliallalinea wrote: | morellik wrote: | E' comunque lento la prima volta che lo fai, dato che il DB deve essere inizializzato.
Poi e' molto piu' veloce. |
Mica tanto visto che ad ogni esync ricrea comunque il db. |
Un esync al giorno leva il medico di torno...
A me da piu' fastidio aspettare 30 secondi per un emerge -S che aspettare 2 minuti in piu' per l'eupdatedb.
Nel primo caso devo aspettare per una informazione, nel secondo lo lancio e faccio qualcosaltro... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31455 Location: here
|
Posted: Tue May 04, 2004 10:47 am Post subject: |
|
|
Danilo wrote: | A me da piu' fastidio aspettare 30 secondi per un emerge -S che aspettare 2 minuti in piu' per l'eupdatedb.
Nel primo caso devo aspettare per una informazione, nel secondo lo lancio e faccio qualcosaltro... |
Questo vale anche per me era solo per dire che eupdatedb viene fatto ad ogni esync. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|