Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2014 15:24:09 -0800
From:      Chris Stankevitz <chrisstankevitz@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        cpet@sdf.org, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Do I want to switch to the new pkg(8) format?
Message-ID:  <CAPi0pssd=qkUZ84nVO6X4Fu9U130W9znkyc2ro3HYM0OR4QYqw@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.11.1412261559270.26354@wonkity.com>
References:  <CAPi0psuei36LjMFT_B7DF3dWhTz=RK28r-kxKdyeNJx1YSapdg@mail.gmail.com> <7813720d20f4ad81c083db7695df728b.squirrel@ma.sdf.org> <alpine.BSF.2.11.1412261056240.60313@wonkity.com> <CAPi0psvo6UOefnJczRkeQ5SpR2k0nSQ6h9Wq2cNyh5Jzr7xB2Q@mail.gmail.com> <alpine.BSF.2.11.1412261559270.26354@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 26, 2014 at 3:11 PM, Warren Block <wblock@wonkity.com> wrote:
>> 1. Upgrading ports is not a "package management" operation.
>
>
> It is.  A port is compiled and a package created from it.  The old package
> is deleted and the new package installed.

How do I use pkg to upgrade all of my ports?  I think you said "use
pkg for all package management operations" but the handbook says use
"pkg upgrade" for binary packages and portmaster for ports.

> Well, cvs and pkg_* can be skipped, they are deprecated.
>
> portsnap update the ports tree (/usr/ports), not installed packages.
> portsclean similarly works on the ports tree, not installed packages.
>
> portmaster and portupgrade are port upgrade tools.  Both are functionally
> similar, mostly concerned with upgrading multiple ports and getting the
> dependencies in the right order.
>
> portmaster and portupgrade call 'make' to build and do other ports
> operations.  But the port Makefiles call the package management tools when
> it is time to delete or install packages, like after a new version of a port
> has been compiled and the make target was "install".

Thank you -- perhaps I should just stop beating around the bush and
directly ask: can someone give me a list of all the "package related"
tools what what they do?  Ideally the list will include the tools that
I should be using at the top and in a postscript the tools I should
not be using because they are too old or for whatever other reason.  I
find the handbook confusing... for example section 5.4 is titled "Use
pkg for binary package management" but you seem to feel otherwise...

Thank you,

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPi0pssd=qkUZ84nVO6X4Fu9U130W9znkyc2ro3HYM0OR4QYqw>