From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 17:59:20 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 E4227106566C for ; Mon, 4 Aug 2008 17:59:20 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 043A68FC13 for ; Mon, 4 Aug 2008 17:59:19 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2867927fgb.35 for ; Mon, 04 Aug 2008 10:59:18 -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=vSPlsMoK0n9+9rzF0cltMzBypwCViiEopm7dgbn6aCs=; b=S8trW3oMgcxTrmdKFQ8XrSsJuwkQnCBfao7tA+1m1YIQoYzS2qbKBG/7gNe8UKzipZ 19G2WXAJb4WNi50ZynozVZwyAmQbYX55OFDfQXIOvn9iXsMPjI5vzVyKWhU5y+3hSu5f q+wFEzu6G/iWoPPy9TZUdGJP59OvD44kf7X9I= 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=lqsumMLzX2SmiNZYwOsd/EdW7Rvmap9jzmYOtrLAUX/80ZIBHBiKxKw22HDEsdRccq 6IzF6GmYK+Omvm9/G4jVAWX5Nn6uhf6XbfdBDMG/D9TEYH84EikIhuIKHb/0Ln2oHmP1 NvCmwk1cwoCxPflcdX7MNrmp0tbXcbUWH0QM4= Received: by 10.86.66.11 with SMTP id o11mr10577392fga.69.1217872757794; Mon, 04 Aug 2008 10:59:17 -0700 (PDT) Received: from atlantis.dyndns.org ( [79.131.193.37]) by mx.google.com with ESMTPS id e20sm257442fga.1.2008.08.04.10.59.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Aug 2008 10:59:17 -0700 (PDT) Message-ID: <48974372.3030406@gmail.com> Date: Mon, 04 Aug 2008 20:59:14 +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> In-Reply-To: <200808041918.12667.nvass@teledomenet.gr> 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 17:59:21 -0000 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