Date: Thu, 31 May 2001 18:25:13 -0500 From: Mike Meyer <mwm@mired.org> To: Cynic <cynic@mail.cz> Cc: questions@freebsd.org Subject: Re: install locations of packages Message-ID: <15126.53977.255299.818173@guru.mired.org> In-Reply-To: <85117693@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Cynic <cynic@mail.cz> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15126.53977.255299.818173>