Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild aggiornati....
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
HunterD
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 165

PostPosted: Mon May 03, 2004 2:22 pm    Post subject: ebuild aggiornati.... Reply with quote

C'è un modo per sapere ad ogni sync quali sono gli ebuild aggiornati ?
L'output di emerge sync non è molto chiaro a proposito... :roll:
Back to top
View user's profile Send private message
Danilo
l33t
l33t


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Mon May 03, 2004 3:01 pm    Post subject: Re: ebuild aggiornati.... Reply with quote

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... :roll:

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


Joined: 10 Mar 2004
Posts: 165

PostPosted: Mon May 03, 2004 3:47 pm    Post subject: Reply with quote

Intedevo proprio l'ultima azione :wink:

Quote:

- stampa a video i nuovi/upgradati pacchetti

Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Mon May 03, 2004 3:56 pm    Post subject: Reply with quote

Penso che se fai:

Code:

ls -R /usr/portage/ > prima.txt


E dopo il sync fai:

Code:

ls -R /usr/portage/ > dopo.txt


Ed infine:

Code:

diff prima.txt dopo.txt


Capisci che nuovi ebuild ci sono
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Mon May 03, 2004 3:59 pm    Post subject: Reply with quote

Code:
emerge esearch


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


Joined: 10 Mar 2004
Posts: 165

PostPosted: Mon May 03, 2004 4:26 pm    Post subject: Reply with quote

Bene allora passerò di sicuro ad esync :D
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Mon May 03, 2004 4:33 pm    Post subject: Reply with quote

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


Joined: 10 Mar 2004
Posts: 165

PostPosted: Tue May 04, 2004 8:05 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Tue May 04, 2004 8:24 am    Post subject: Reply with quote

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 :wink:

esync = emerge sync + updatedb, quindi e' normale che ci metta molto.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Tue May 04, 2004 9:43 am    Post subject: Reply with quote

quindi se uso esearch l'esync non serve?perchè esync esegue updatedb e non eupdatedb :s
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Tue May 04, 2004 9:45 am    Post subject: Reply with quote

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


Joined: 24 Feb 2004
Posts: 376

PostPosted: Tue May 04, 2004 9:57 am    Post subject: Reply with quote

benissimo allora...lo userò da ora in poi ;) grazie
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Tue May 04, 2004 9:58 am    Post subject: Reply with quote

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


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Tue May 04, 2004 10:18 am    Post subject: Reply with quote

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 :wink:


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


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Tue May 04, 2004 10:22 am    Post subject: Reply with quote

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


Joined: 05 Feb 2004
Posts: 747
Location: Italy

PostPosted: Tue May 04, 2004 10:45 am    Post subject: Reply with quote

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


Joined: 08 Mar 2003
Posts: 31455
Location: here

PostPosted: Tue May 04, 2004 10:47 am    Post subject: Reply with quote

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
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