From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-85992-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1KxkqN-0002KK-1y
	for garchives@archives.gentoo.org; Wed, 05 Nov 2008 16:02:55 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 27229E02F5;
	Wed,  5 Nov 2008 16:02:54 +0000 (UTC)
Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.156])
	by pigeon.gentoo.org (Postfix) with ESMTP id 09847E02F5
	for <gentoo-user@lists.gentoo.org>; Wed,  5 Nov 2008 16:02:54 +0000 (UTC)
Received: by yw-out-1718.google.com with SMTP id 5so33890ywm.46
        for <gentoo-user@lists.gentoo.org>; Wed, 05 Nov 2008 08:02:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:sender
         :to:subject:in-reply-to:mime-version:content-type
         :content-transfer-encoding:content-disposition:references
         :x-google-sender-auth;
        bh=srinxYWXcT/4eJaVWrvyyuxnIL6ffNV28HpQyWlMIiM=;
        b=P8FD5yjgCjRf+3OmqL9/Bu84OW6T4xzLqggp3oFnhAbi3s8Twjn3Jj1BfnvUiDYB6d
         6MaGSTgwRRmlUMQ4WHi/FSnGdITUSHulK4Hrlww4OfYxzKFJoSeTE4iUF/rDfqDQEyMy
         nV+v2KJ3iFjJBQMW7dMmem4yMCcZBCc/88q8Q=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:sender:to:subject:in-reply-to:mime-version
         :content-type:content-transfer-encoding:content-disposition
         :references:x-google-sender-auth;
        b=fc+TN/ErAIsGB9Rrf7OPP1sQxMyNa2phOgE1EOHmsKhO4cR7NIH8ikWZ2oMd9yYjQU
         jIK+sKRwYpo82i+SJXKR/fQe9atnpt1Qbub/q7LE8dfUWKKrSJ1SVQYXP34plwXQ9eJ2
         1ond9ZStdylFj0OciAzgUFMc1gbs+Qss3O2Cs=
Received: by 10.90.99.6 with SMTP id w6mr792039agb.81.1225900972132;
        Wed, 05 Nov 2008 08:02:52 -0800 (PST)
Received: by 10.90.81.1 with HTTP; Wed, 5 Nov 2008 08:02:52 -0800 (PST)
Message-ID: <38af3d670811050802k34c1e30bx7459819e86bb21ed@mail.gmail.com>
Date: Wed, 5 Nov 2008 14:02:52 -0200
From: "Jorge Peixoto de Morais Neto" <please.no.spam.here@gmail.com>
Sender: jorgepeixotomorais@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Installing software without an internet connection
In-Reply-To: <79e3aefb0811042349q18c0e801i1fe4259961595377@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <A09C649FB45C9046902D44205498F0EA037DBA29@lkcysxmb301.zone3.scb.net>
	 <79e3aefb0811042224h6696aecdy64bcb930962cf1d5@mail.gmail.com>
	 <A09C649FB45C9046902D44205498F0EA03808663@lkcysxmb301.zone3.scb.net>
	 <79e3aefb0811042349q18c0e801i1fe4259961595377@mail.gmail.com>
X-Google-Sender-Auth: 5f0ad18bb90698a5
X-Archives-Salt: 8f1828a9-685d-44dc-bbc5-cbcad9e7a2c3
X-Archives-Hash: 261f9567868de932f573e463e45c9e25

On Wed, Nov 5, 2008 at 5:49 AM, Dirk Uys <dirkcuys@gmail.com> wrote:
> On Wed, Nov 5, 2008 at 9:18 AM, Lorenzu Hewa, Gayan Neomal
> <GayanNeomal.LorenzuHewa@standardchartered.com> wrote:
>> I Used the Live CD ... It does contain few packages like X11,xfce4, gdm
>> , some network utils,vim . But I need to get other packages which I
>> need. lIke Gcj , fluxbox , mpg321 ...
>>
>> Even though it has only few packages installed it consumes a lot of disk
>> space... that another problem im having.
>>
>
> I used to run an offline gentoo setup. You can use "emerge -upvf
> <package-name(s)>" to get a list of files you need to obtain. Pipe the
> output of that to some file, do some grep/sed to remove duplicates and
> remove the multiple urls.
>
> Write a script to fetch all the files in your file list. It can be as
> simple as "for file in `cat filelist` do wget $URL/$file; done;" When
> you get to an internet connection, run the script to fetch all the
> files.
Why don't you just run wget -i filelist? In fact, you do not even need
to edit the filelist to remove duplicates; you can just use wget's -nc
option.

So you can use wget -nc -i filelist
or, if you want to do it in the background
wget -nc -i filelist -b --progress=dot:mega

> The /usr/portage/distfiles directory can very quickly grow, clean it
> up every now and then.
I suggest the tool eclean (part of gentoolkit).