Port installation methods
Alex de Kruijff
freebsd at akruijff.dds.nl
Sun Sep 28 10:20:21 PDT 2003
On Sat, Sep 27, 2003 at 09:04:47PM -0400, Todd Stephens wrote:
> On Saturday 27 September 2003 07:43 pm, Alex de Kruijff wrote:
> >
> > If you've just installed a fresh FreeBSD system then there isn't
> > much difference. I offten use the make method in this case. But I
> > switch to portinstall and portupgrade if I a) have updated /usr/ports
> > and b) have installed any port or package. The reason for this is
> > that portinstall and portupgrade have a better port management
> > system. This package/port detects for you changes. With out the
> > portupgrade package you will find that multiple version of the same
> > packages will be registered and only one is installed. (There is only
> > one installed because each override the other fysicaly in /usr/local
> > and /usr/X11R6 but not in the regerstry.)
>
> I see. I have already run into that (having 2 versions of a package
> registered but only one installed). I have recently started using
> portinstall for installing ports. I have been using portupgrade for a
> while now. It seems to me that portinstall (as you indicated) is
> better at finding and fixing dependency issues as well.
>
There port also include special tools to rebuild your regerstry. I have
this running by default after updating my cvs sources. The tool is
called portsdb (options -uU). I run portsclean (options -DLP) to remove
distfiles, libiaries and packages that are no longer needed.
--
Alex
Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
More information about the freebsd-questions
mailing list