From owner-freebsd-questions Tue Jan 8 7:54:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id 6FB9E37B404 for ; Tue, 8 Jan 2002 07:54:28 -0800 (PST) Received: from barbish ([63.70.155.49]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Tue, 8 Jan 2002 10:57:08 -0500 From: "Joe & Fhe Barbish" To: "Stijn Hoop" Cc: "FBSD Questions" Subject: RE: install package from pre-downloaded tgz file? Date: Tue, 8 Jan 2002 10:54:24 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20020108162037.H68209@pcwin002.win.tue.nl> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In my cvsupfile I set the environment variables PKG_TMPDIR and TMPDIR to /usr. I thought this set those values permanently? Are you saying these values only stay set for the duration of the run and have to be set every time I access the FBSD cvsup source tree? You said "If these variables are not present or if the directories named lack sufficient space, then pkg_add will use the first of /var/tmp, /tmp or /usr/tmp with sufficient space." I this is true then why did me pkg_add use /var/tmp and run out of space when /usr has 1.7G? Is pkg_add pkg-name -PKG_TMPDIR="/usr" the correct command format? -----Original Message----- From: Stijn Hoop [mailto:stijn@win.tue.nl] Sent: Tuesday, January 08, 2002 10:21 AM To: Joe & Fhe Barbish Cc: Steve Brown; FBSD Questions Subject: Re: install package from pre-downloaded tgz file? On Tue, Jan 08, 2002 at 10:18:16AM -0500, Joe & Fhe Barbish wrote: > Yes this worked just like you said. But when it ran it > said it needed other packages that were missing. > I thought when I selected a package install it was a > complete pre complied working environment ready to use > as is after install completes. What I think I see happening > is a package does not include any of it's required dependents > pre-compiled into the package. That the package will still > require it's dependents, but it needs the packaged versions > of it's dependents. Am I correct in this? Yes - the dependencies are separate packages, which you need to fetch separately. If you put them in the same directory pkg_add will automatically find them. > Another thing I saw was when pkg_add tries to download the > other dependent packages it tries to but them in /var > directory tree and not /usr directory tree. /usr has 1.7G free > space and /var has 18M free space and all the dependents fill > up the /var so the pkg_add terminates due to ran out of space. > > Is there some way to tell pkg_add to use /usr to stage package > install instead of /var? Yes, see pkg_add(1): The environment variables PKG_TMPDIR and TMPDIR, in that order, are taken to name temporary directories where pkg_add will attempt to create its staging area in. If these variables are not present or if the directo- ries named lack sufficient space, then pkg_add will use the first of /var/tmp, /tmp or /usr/tmp with sufficient space. HTH, --Stijn -- In the force if Yoda's so strong, construct a sentence with words in the proper order then why can't he? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message