From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 20:01:10 2009 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 CDB621065713 for ; Sat, 3 Jan 2009 20:01:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 235558FC38 for ; Sat, 3 Jan 2009 20:01:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-03.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id n03Jp12g009742 for ; Sat, 3 Jan 2009 21:51:01 +0200 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-03.forthnet.gr (8.14.3/8.14.3) with ESMTP id n03Jp1le017832 for ; Sat, 3 Jan 2009 21:51:01 +0200 Received: from kobe.laptop (ppp160-148.adsl.forthnet.gr [194.219.40.148]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id n03JorWg001167 for ; Sat, 3 Jan 2009 21:50:54 +0200 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n03Jor1G003577 for ; Sat, 3 Jan 2009 21:50:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n03Joqpt003576; Sat, 3 Jan 2009 21:50:52 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Free BSD Questions list References: <20090103172306.GA15372@teddy.fas.com> Date: Sat, 03 Jan 2009 21:50:52 +0200 In-Reply-To: <20090103172306.GA15372@teddy.fas.com> (stan's message of "Sat, 3 Jan 2009 12:23:06 -0500") Message-ID: <87prj4np7n.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Createing a package. 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: Sat, 03 Jan 2009 20:01:12 -0000 On Sat, 3 Jan 2009 12:23:06 -0500, stan wrote: > I have managed to build OO on a machine of the same architecture as I want > to run it oon. The target machine does not seem to be capable of building > it. I suspect that it does not have enough memory. > > Can I create a package on the "donor" machine to move this to the target > machine? Or is there a better way to do this? Yes. The pkg_create utility can do this for you. * Create an empty directory in the package 'host' system. This will hold the OO package and any dependencies it needs to run. I often use `/usr/ports/packages' for this purpose, i.e.: # mkdir -p /usr/ports/packages * Enter the empty directory and run pkg_create. By specifying the -R and -b options you can create packages for an installed version of OO (the -b option) and all its dependencies (the -R option): # pkg_create -R -b open-office-XXX Make sure that you specify the package name of the installed OO. Let pkg_create run for a while, and when it is finished you will have `*.tbz' packages for OO and everything it needs to run. Copy these packages in a directory on the target host (or just mount the 'host' directory over NFS), make sure that you have plenty of disk space in /var/tmp (pkg_install will need it to extract the packages as it installs them on the target system), and then from the target system run: # cd /path/to/mounted/package/directory # pkg_add open-office-XXX