[Fwd: Re: package vs ports question]

Norberto Meijome freebsd at meijome.net
Mon Mar 27 12:38:18 UTC 2006


On Mon, 27 Mar 2006 07:15:07 -0400
Duane Whitty <duane at greenmeadow.ca> wrote:

> Does the installation process install any package that may be
> overriden by any port?

yes. for example ,you select to install bash-3 from sysinstall ( " the
freebsd installer UI" ). this reads and installs the package
bash-3.x.y.z.tbz from somewhere in your selected setup origin (DVD /
CD / FTP / NFS).

I assume you would also install the ports collection and keep it up to
date (keeping a system up to date without the actual ports collection
in /usr/ports is , I guess, doable...though i've never done it, and I
dont see why I would want to, unless i'm in dire need of space).

Anyway, you update your ports, and you learn that bas-3.x.(y+1).b is
out. You can now install this new version from a package by either:
 a) downloading the package by hand and using 
   pkg_add /path/to/package/file 
 b) portupgrade -PP bash

Or you can install this from source, by doing either of:
 a) cd /usr/ports/shells/bash ; make install clean
 or
 b) portupgrade shells/bash

The option I've been using lately is a mix of both - use the package if
available (locally or from remote site); if not avail, build from
source and generate a package (so I can reinstall as needed in
other/same box):
 portupgrade -pP shells/bash

or

 cd /usr/ports/shells/bash ; make ; make deinstall ; make package
clean

 ( package generation doesnt work for ALL ports, but the vast
majority would be ok. For example ,Adobe Acrobate cannot be
redistributed in binary form, so a package cannot be generated. the
process will still work)

HIH,
Beto


More information about the freebsd-questions mailing list