From owner-freebsd-questions Thu May 31 16:25:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 718C437B422 for ; Thu, 31 May 2001 16:25:14 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 89094 invoked by uid 100); 31 May 2001 23:25:13 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15126.53977.255299.818173@guru.mired.org> Date: Thu, 31 May 2001 18:25:13 -0500 To: Cynic Cc: questions@freebsd.org Subject: Re: install locations of packages In-Reply-To: <85117693@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 Cynic types: > Now, $ whereis csh revealed that csh is in /bin/ and > /usr/share/man/man1/. Since the default prefix for the bash > package I'm talking about (but that's just an example) is > /usr/local/, I suppose that if I install the package with > # pkg_add -p / bash-2.05.tgz, it'll install the man page to > /man/man1/, right? Right. However, it's not guaranteed to work after you do that. To make sure a package will work where it's installed, you need to build it from the ports tree with PREFIX set appropriately. To make sure that dependencies between ports work properly, you need to set LOCALBASE and leave it set for all port builds. > My question is really about maintenance of installed packages, > not about a specific single one. I'm looking for advice about > the simplest way of modifying installed packages (which will > preserve the ability to uninstall packages with pkg_delete(1)). To do that, just fix the @cwd's in +CONTENTS, and move the files to the place where they should be. You shouldn't need to do anything else. On the other hand, if you've got the package, it's probably easier to simply delete and reinstall the package with the -p flag. But again, it may not work if you do that. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message