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

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Dec 2014, cpet@sdf.org wrote:

>> Hello,
>>
>> I am familiar with the gentoo "portage" system but I am unfamiliar
>> with the freebsd system.  I prefer to compile ports.
>>
>> While I am familiar with "make install", I do not know how to upgrade
>> all the ports I previously installed (equivalent to gentoo's "emerge
>> -Dauv world").  Section 5.5.3.1 of the handbook says that I should use
>> portmaster.  When I install portmaster I get a friendly reminder:
>>
>> "If you want to switch to the new pkg(8) format, and have not already
>> done so, there are some extra 1-time steps to take"
>>
>> Can you guys help me answer these questions:
>>
>> 1. Do I want to switch to the new pkg(8) format?
>>
>> 2. If yes, have I already done so?
>>
>> Thank you,
>>
>> Chris
>>
>> PS: I'm running 10.1-RELEASE-p3
>>
> This comes down to 2 things which are easy:
>
> 1. Do you compile a lot of packages with custom options then skip pkgng
> and continue to using ports.

No, both binary packages and ports require pkg now.  It is the only 
supported package management tool, and installing ports *is* installing 
packages.

Any users who continue to use and update FreeBSD with ports or packages 
after September 2014 must switch to pkg.

> 2. If you don't and just do make install clean and only use default
> options then pkgng would be easier.

The old package database tools are no longer supported.  So yes, it is 
time to switch to pkg (the preferred name now).  If the old pkg_* 
commands are still present, do not use them after the switch.

The message on portmaster needs to be updated.  Switching to the new 
package database is a one-time thing.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1412261056240.60313>