From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 18:08:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB4F91065670 for ; Mon, 4 Aug 2008 18:08:26 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 3868C8FC14 for ; Mon, 4 Aug 2008 18:08:25 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2871545fgb.35 for ; Mon, 04 Aug 2008 11:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ylzHwcGtJPpYkBTg2zfXvGoU9l9FHcZ5HwznZvwZwmI=; b=fmmSaEOSdWagnGSBr5N8CSzgcOu925OpGHwE27D6C1IedrcIQe4ebxiNnIJfJJXbPZ +3e77O8IDry3fmGC+0AnscIeudnJkC/+NnFpkHv13ZXoYls2vumGogfYQ+pGW/YtBN8p 9vj11BBlqgCD/73WADFXcEtZvCdGvE3or1nIk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=BmkCJumAug1oH+No5aQmTEX9H1XpPBedETjEoj8FfulMzvoawJh+x3sPclZOGJfj1g /NqVX/ikyzJqKesCA09a+FTwC2LFgN7IVbAk9VUqc1Gc+ac3IzaS3rgxolpJGuLbbaU4 Bq9WSchppM9fk34qzldMFCy3SPzwxMrWCjoIk= Received: by 10.86.33.19 with SMTP id g19mr10603617fgg.50.1217873304038; Mon, 04 Aug 2008 11:08:24 -0700 (PDT) Received: from atlantis.dyndns.org ( [79.131.193.37]) by mx.google.com with ESMTPS id 3sm244586fge.3.2008.08.04.11.08.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Aug 2008 11:08:22 -0700 (PDT) Message-ID: <48974593.407@gmail.com> Date: Mon, 04 Aug 2008 21:08:19 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080703) MIME-Version: 1.0 To: Nikos Vassiliadis References: <200808041409.58825.nvass@teledomenet.gr> <4896E955.8010407@gmail.com> <200808041918.12667.nvass@teledomenet.gr> <48974372.3030406@gmail.com> In-Reply-To: <48974372.3030406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: creating package repository for offline installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 18:08:26 -0000 Manolis Kiagias wrote: > Nikos Vassiliadis wrote: >> On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote: >> >>> If you don't mind building the packages (on the remote system) from >>> ports, I would suggest ports-mgmt/tinderbox >>> Comprehensive instructions are located here: >>> http://tinderbox.marcuscom.com/ I've used it for quite some time >>> (http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a >>> machine for package building and I am using a couple of my own simple >>> scripts. >>> >> >> I really don't care about the latest and shiniest programs. >> So, I do mind building from ports. I just want to download >> 20-30 packages along with their dependecies. >> >> I think I've found a relatively cheap way to do just that, >> I am going to use unionfs to create a "replica" of my system, >> mount an empty fs on $JAIL/var/db/pkg, fire up "jail $JAIL" >> and pkg_add -Kr $everything_i_want in there. >> >> //a few of minutes later >> >> Yet to my big surprise(and disappointment) pkg_add -Kr >> does not keep the dependencies, but only the requested >> file e.g. pkg_add -rK bash, downloads all depedencies, >> installs bash and deletes all packages but bash. Not >> much of a progress... >> >> >> > But you can still use the installed packages to recreate everything: > > e.g. pkg_create -Rb bash-x.y.z > > Or, use a simple shell script with pkg_create -b to create packages > from all installed ones, i.e: > > for i in `pkg_info -Ea` > do > pkg_create -b $i > done > And by the way, if you are running 7-STABLE, pkg_create supports a no-clobber option (courtesy of Giorgos ;) ), so if you run it with -R (recursion) it will not keep recreating / overwriting the existing packages in the same directory.