Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Come creare una list da dare in pasto a wget
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) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
midall
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 139

PostPosted: Mon Aug 30, 2004 11:27 am    Post subject: [TIP] Come creare una list da dare in pasto a wget Reply with quote

Ebbene questo tip ha lo scopo di aiutarvi a creare una list contente gli url dei sorgenti per la nostra gentoo in modo tale che utenti come me che hanno una 56k come connessione possano esportare una lista di pachetti da emergere in modo tale da scaricarla su un pc con connessione ad internet + veloce..

Allora la righa è questa:
Code:
 emerge -Dupf world 2>&1 | cut -f1 -d " " | grep [ftp,http] > world.list


Cosi facendo avremo nel file world.list gli url per i download dei sorgenti..
Ora diamo un bel
Code:
 wget -N -i world.list

e wget scarichera nella directory corrente tutti i sorgenti...
N.B!!! wget è disponibile anche per Windows.. lanciarlo con i parametri identici

Non vi resta che masterizzare i sorgenti e poi avete 2 starde:
-o copiate i file scaricati nella vostra distfiles
-oppure fate prima un bel mount del cd e successivamente:
Code:
 export DISTDIR="/mnt/cdrom"

Naturalmente ammettendo che il vostro mount point del cdrom sia /mnt/cdrom!!!!

Spero vi sia utilie ciao raga e tenete botta!!!!!
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Mon Aug 30, 2004 12:34 pm    Post subject: Re: [TIP] Come creare una list da dare in pasto a wget Reply with quote

midall wrote:
Spero vi sia utilie ciao raga e tenete botta!!!!!


Aggiunto ai post utilissimi :)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Mon Aug 30, 2004 12:41 pm    Post subject: Reply with quote

Utilissimo :D :D :D

Questo me lo segno proprio.

Thanxx
mouser
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Aug 30, 2004 12:59 pm    Post subject: Reply with quote

Ottimo tip molto interessante... grazie :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
midall
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 139

PostPosted: Mon Aug 30, 2004 1:01 pm    Post subject: Reply with quote

Grazie spero che qualche moderatore lo metta nei post ultimissimi visto che siamo in ancora in molti ad avere una 56k come connessione e per noi i download sono proibitivi :cry:
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Aug 30, 2004 1:02 pm    Post subject: Reply with quote

midall wrote:
Grazie spero che qualche moderatore lo metta nei post ultimissimi visto che siamo

L'ha gia' fatto Shev leggi sopra :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Mon Aug 30, 2004 1:03 pm    Post subject: Reply with quote

midall wrote:
Grazie spero che qualche moderatore lo metta nei post ultimissimi visto che siamo in ancora in molti ad avere una 56k come connessione e per noi i download sono proibitivi :cry:


Bhe, c'è anche chi è messo peggio :cry: :cry: :cry:
Back to top
View user's profile Send private message
midall
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 139

PostPosted: Mon Aug 30, 2004 1:04 pm    Post subject: Reply with quote

Ops non avevo letto bene.. siete troppo efficienti voi moderatori...
Certo che la comunità italiana di gentoo non ha nulla che invidiare agli altri!!!
Back to top
View user's profile Send private message
xoen
Guru
Guru


Joined: 06 Sep 2003
Posts: 472
Location: /dev/null

PostPosted: Wed Aug 03, 2005 10:06 pm    Post subject: Re: [TIP] Come creare una list da dare in pasto a wget Reply with quote

midall wrote:
Ebbene questo tip ha lo scopo di aiutarvi a creare una list contente gli url dei sorgenti per la nostra gentoo in modo tale che utenti come me che hanno una 56k come connessione possano esportare una lista di pachetti da emergere in modo tale da scaricarla su un pc con connessione ad internet + veloce..


midall wrote:

Spero vi sia utilie ciao raga e tenete botta!!!!!

Ti amo.

Ho l'ADSL, la flat, ma questo TIP resta comunque micidiale!

PS: Mi è appena arrivato il notebook (Asus A6770KLH) e sto usando questo trucchetto ;)
_________________
xoen.Blog()
god@paradise # tar xfvjp big-bang.tar.bz2 -C universe
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Mon Oct 29, 2007 8:28 pm    Post subject: Reply with quote

Domanda disperata...

Con l'anno nuovo vado a vivere in un'altra casa dove non avrò internet (spero per meno tempo possibile).
Come potrebbe essere possibile aggiornare il mio PC senza connessione?

E' possibile scaricarsi il tree di portage da un PC (al lavoro?) ed i sorgenti e poi trasferirli a casa?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Wed Oct 31, 2007 8:44 am    Post subject: Reply with quote

Si può semplificare molto il comando (e renderlo multiserver compliant):
Code:
emerge -NDupfq world | xargs -n 1 > lista.txt
e poi si scarica con
Code:
wget -c -i lista.txt

_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed Oct 31, 2007 9:45 am    Post subject: Reply with quote

bandreabis wrote:
E' possibile scaricarsi il tree di portage da un PC (al lavoro?) ed i sorgenti e poi trasferirli a casa?

Nulla di più banale :wink:
Per il tree di portage basta scaricarsi l'ultimo snapshot da uno dei mirror (proprio come quando si procede all'installazione), metti quello sul tuo pc e poi ti prepari la lista dei pacchetti da scaricare come descritto in questa discussione.
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Wed Oct 31, 2007 10:07 am    Post subject: Reply with quote

"Banale" mi piace più che "impossibile" :P
Grazie
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) 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