スポンサーリンク

FreeBSD は、サードパーティ製のソフトウェアの導入を支援するために、 ソースコードをコンパイルしてインストールする Ports Collection と、 コンパイル済みのバイナリをインストールする packages という相補的な 2 つの技術を提供しています。

packages と portsの更新

packagesはpkgコマンドを使用してコンパイルを必要とせずアプリケーションをインストールできます。しかし、packagesだけですべてのアプリケーションをインストールできるわけではありません。依存関係が邪魔をしてAというアプリをインストールするとBというアプリが削除されるといったことが発生します。

たとえば、FreeBSD 12.2-Releaseでnginx-fullをインストールした場合、php74-pecl-imagickをpkg installでインストールしようとするとnginx-fullが削除されてしまいます。
これはpackagesでは、nginx-fullはimagick 6.Xのライブラリが要件になっているのに対して、php74-pecl-imagickはimagick 7.Xのライブラリが要件になっているために発生します。
このように依存関係が原因のケースでは、portsからphp74-pecl-imagickをインストールすると回避できます。

そのため、今後、サードパティ製のアプリケーションをインストールまたは更新するにはpackagesとportsをうまく使い分けていくことが良策だと思います。

pkg

マイナーバージョンのアップデートでは影響はありませんが、メジャーバージョンのアップデートではサードパティ製のアプリケーションが動作しなくなる可能性があるため、メジャーバージョンアップグレード後には、インストールされているすべての packages, ports をアップグレードする必要があります。

pkg update -f

root@ik1-429-46995:~ # pkg update -f
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.16.3...
Extracting pkg-1.16.3: 100%
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.txz: 100%    6 MiB   6.6MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 30831 packages processed.
All repositories are up to date.

pkg upgrade

root@ik1-438-51137:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.

git

gitをインストール

portsコレクションをgitでインストールおよび更新するためにまずgitをインストールします。

ここではgitを使用した例を説明します。他にはportsnapを使用する方法があります。
root@ik1-429-46995:~ # pkg install git
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 34 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        ca_root_nss: 3.63
        curl: 7.77.0
        cvsps: 2.1_2
        expat: 2.4.1
        gettext-runtime: 0.21
        git: 2.32.0_1
        indexinfo: 0.3.1
        libffi: 3.3_1
        libnghttp2: 1.43.0
        mpdecimal: 2.5.1
        p5-Authen-SASL: 2.16_1
        p5-CGI: 4.53
        p5-Clone: 0.45
        p5-Digest-HMAC: 1.04
        p5-Encode-Locale: 1.05
        p5-Error: 0.17029
        p5-GSSAPI: 0.28_1
        p5-HTML-Parser: 3.76
        p5-HTML-Tagset: 3.20_1
        p5-HTTP-Date: 6.05
        p5-HTTP-Message: 6.32
        p5-IO-HTML: 1.001_1
        p5-IO-Socket-INET6: 2.72_1
        p5-IO-Socket-SSL: 2.071
        p5-LWP-MediaTypes: 6.04
        p5-Mozilla-CA: 20200520
        p5-Net-SSLeay: 1.90
        p5-Socket6: 0.29
        p5-TimeDate: 2.33,1
        p5-URI: 5.09
        pcre2: 10.37
        perl5: 5.32.1_1
        python38: 3.8.10
        readline: 8.1.1

Number of packages to be installed: 34

The process will require 225 MiB more space.
42 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/34] Fetching git-2.32.0_1.txz: 100%    5 MiB   5.4MB/s    00:01
[2/34] Fetching p5-CGI-4.53.txz: 100%  155 KiB 158.5kB/s    00:01
[3/34] Fetching p5-HTML-Parser-3.76.txz: 100%   79 KiB  81.3kB/s    00:01
[4/34] Fetching p5-HTTP-Message-6.32.txz: 100%   78 KiB  80.0kB/s    00:01
[5/34] Fetching p5-LWP-MediaTypes-6.04.txz: 100%   20 KiB  20.1kB/s    00:01
[6/34] Fetching perl5-5.32.1_1.txz: 100%   14 MiB   7.4MB/s    00:02
[7/34] Fetching p5-HTTP-Date-6.05.txz: 100%   10 KiB  10.6kB/s    00:01
[8/34] Fetching p5-TimeDate-2.33,1.txz: 100%   33 KiB  33.5kB/s    00:01
[9/34] Fetching p5-URI-5.09.txz: 100%   80 KiB  82.1kB/s    00:01
[10/34] Fetching p5-IO-HTML-1.001_1.txz: 100%   14 KiB  14.5kB/s    00:01
[11/34] Fetching p5-Clone-0.45.txz: 100%   10 KiB  10.5kB/s    00:01
[12/34] Fetching p5-Encode-Locale-1.05.txz: 100%   12 KiB  11.9kB/s    00:01
[13/34] Fetching p5-HTML-Tagset-3.20_1.txz: 100%   12 KiB  12.0kB/s    00:01
[14/34] Fetching expat-2.4.1.txz: 100%  103 KiB 105.1kB/s    00:01
[15/34] Fetching p5-IO-Socket-SSL-2.071.txz: 100%  171 KiB 174.7kB/s    00:01
[16/34] Fetching p5-Mozilla-CA-20200520.txz: 100%  128 KiB 131.1kB/s    00:01
[17/34] Fetching p5-Net-SSLeay-1.90.txz: 100%  271 KiB 277.6kB/s    00:01
[18/34] Fetching p5-IO-Socket-INET6-2.72_1.txz: 100%   13 KiB  13.1kB/s    00:01
[19/34] Fetching p5-Socket6-0.29.txz: 100%   16 KiB  16.7kB/s    00:01
[20/34] Fetching p5-Authen-SASL-2.16_1.txz: 100%   40 KiB  41.5kB/s    00:01
[21/34] Fetching p5-GSSAPI-0.28_1.txz: 100%   41 KiB  41.9kB/s    00:01
[22/34] Fetching p5-Digest-HMAC-1.04.txz: 100%   14 KiB  14.1kB/s    00:01
[23/34] Fetching python38-3.8.10.txz: 100%   17 MiB   6.0MB/s    00:03
[24/34] Fetching mpdecimal-2.5.1.txz: 100%  321 KiB 328.7kB/s    00:01
[25/34] Fetching readline-8.1.1.txz: 100%  361 KiB 369.4kB/s    00:01
[26/34] Fetching indexinfo-0.3.1.txz: 100%    6 KiB   5.8kB/s    00:01
[27/34] Fetching libffi-3.3_1.txz: 100%   39 KiB  40.1kB/s    00:01
[28/34] Fetching gettext-runtime-0.21.txz: 100%  165 KiB 168.7kB/s    00:01
[29/34] Fetching p5-Error-0.17029.txz: 100%   27 KiB  27.3kB/s    00:01
[30/34] Fetching curl-7.77.0.txz: 100%    1 MiB   1.4MB/s    00:01
[31/34] Fetching libnghttp2-1.43.0.txz: 100%  123 KiB 125.9kB/s    00:01
[32/34] Fetching ca_root_nss-3.63.txz: 100%  276 KiB 282.4kB/s    00:01
[33/34] Fetching pcre2-10.37.txz: 100%    1 MiB   1.3MB/s    00:01
[34/34] Fetching cvsps-2.1_2.txz: 100%   43 KiB  43.9kB/s    00:01
Checking integrity... done (0 conflicting)
[1/34] Installing perl5-5.32.1_1...
[1/34] Extracting perl5-5.32.1_1: 100%
[2/34] Installing p5-TimeDate-2.33,1...
[2/34] Extracting p5-TimeDate-2.33,1: 100%
[3/34] Installing p5-LWP-MediaTypes-6.04...
[3/34] Extracting p5-LWP-MediaTypes-6.04: 100%
[4/34] Installing p5-HTTP-Date-6.05...
[4/34] Extracting p5-HTTP-Date-6.05: 100%
[5/34] Installing p5-URI-5.09...
[5/34] Extracting p5-URI-5.09: 100%
[6/34] Installing p5-IO-HTML-1.001_1...
[6/34] Extracting p5-IO-HTML-1.001_1: 100%
[7/34] Installing p5-Clone-0.45...
[7/34] Extracting p5-Clone-0.45: 100%
[8/34] Installing p5-Encode-Locale-1.05...
[8/34] Extracting p5-Encode-Locale-1.05: 100%
[9/34] Installing p5-HTTP-Message-6.32...
[9/34] Extracting p5-HTTP-Message-6.32: 100%
[10/34] Installing p5-HTML-Tagset-3.20_1...
[10/34] Extracting p5-HTML-Tagset-3.20_1: 100%
[11/34] Installing p5-Socket6-0.29...
[11/34] Extracting p5-Socket6-0.29: 100%
[12/34] Installing indexinfo-0.3.1...
[12/34] Extracting indexinfo-0.3.1: 100%
[13/34] Installing p5-HTML-Parser-3.76...
[13/34] Extracting p5-HTML-Parser-3.76: 100%
[14/34] Installing p5-Mozilla-CA-20200520...
[14/34] Extracting p5-Mozilla-CA-20200520: 100%
[15/34] Installing p5-Net-SSLeay-1.90...
[15/34] Extracting p5-Net-SSLeay-1.90: 100%
[16/34] Installing p5-IO-Socket-INET6-2.72_1...
[16/34] Extracting p5-IO-Socket-INET6-2.72_1: 100%
[17/34] Installing p5-GSSAPI-0.28_1...
[17/34] Extracting p5-GSSAPI-0.28_1: 100%
[18/34] Installing p5-Digest-HMAC-1.04...
[18/34] Extracting p5-Digest-HMAC-1.04: 100%
[19/34] Installing mpdecimal-2.5.1...
[19/34] Extracting mpdecimal-2.5.1: 100%
[20/34] Installing readline-8.1.1...
[20/34] Extracting readline-8.1.1: 100%
[21/34] Installing libffi-3.3_1...
[21/34] Extracting libffi-3.3_1: 100%
[22/34] Installing gettext-runtime-0.21...
[22/34] Extracting gettext-runtime-0.21: 100%
[23/34] Installing libnghttp2-1.43.0...
[23/34] Extracting libnghttp2-1.43.0: 100%
[24/34] Installing ca_root_nss-3.63...
[24/34] Extracting ca_root_nss-3.63: 100%
[25/34] Installing p5-CGI-4.53...
[25/34] Extracting p5-CGI-4.53: 100%
[26/34] Installing expat-2.4.1...
[26/34] Extracting expat-2.4.1: 100%
[27/34] Installing p5-IO-Socket-SSL-2.071...
[27/34] Extracting p5-IO-Socket-SSL-2.071: 100%
[28/34] Installing p5-Authen-SASL-2.16_1...
[28/34] Extracting p5-Authen-SASL-2.16_1: 100%
[29/34] Installing python38-3.8.10...
[29/34] Extracting python38-3.8.10: 100%
[30/34] Installing p5-Error-0.17029...
[30/34] Extracting p5-Error-0.17029: 100%
[31/34] Installing curl-7.77.0...
[31/34] Extracting curl-7.77.0: 100%
[32/34] Installing pcre2-10.37...
[32/34] Extracting pcre2-10.37: 100%
[33/34] Installing cvsps-2.1_2...
[33/34] Extracting cvsps-2.1_2: 100%
[34/34] Installing git-2.32.0_1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[34/34] Extracting git-2.32.0_1: 100%
=====
Message from ca_root_nss-3.63:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from python38-3.8.10:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
=====
Message from git-2.32.0_1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.

Port Collectionのインストール
HEAD ブランチの ports ツリーをチェックアウトしています。

OSインストール(bsdinstall)でportsをインストールしていない場合はこのまま進めてください。
portsをインストールした場合は、今後、gitを使用するのであれば「rm -rf /usr/ports」で既にインストール済みのPorts Collectionを削除してから作業をすすめてください。
root@ik1-429-46995:~ # git clone https://git.FreeBSD.org/ports.git /usr/ports
Cloning into '/usr/ports'...
remote: Enumerating objects: 936, done.
remote: Counting objects: 100% (936/936), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 5087844 (delta 923), reused 816 (delta 816), pack-reused 5086908
Receiving objects: 100% (5087844/5087844), 825.12 MiB | 10.10 MiB/s, done.
Resolving deltas: 100% (3066001/3066001), done.
Updating files: 100% (140567/140567), done.

それ以降の/usr/ports の更新

root@ik1-438-51137:~ # git -C /usr/ports pull
Already up to date.

portsのメンテナンス用ツール

portupgrade

portupgradeのインストール

root@ik1-438-51137:~ # cd /usr/ports;make search name=portupgrade
Port:   portupgrade-2.4.16,2
Path:   /usr/ports/ports-mgmt/portupgrade
Info:   FreeBSD ports/packages administration and management tool suite
Maint:  bdrewery@FreeBSD.org
B-deps: indexinfo-0.3.1 libedit-3.1.20210216,1 libffi-3.3_1 libunwind-20201110 libyaml-0.2.5 ncurses-6.2.20210626 ruby-2.7.4,1
R-deps: db5-5.3.28_7 indexinfo-0.3.1 libedit-3.1.20210216,1 libffi-3.3_1 libunwind-20201110 libyaml-0.2.5 ncurses-6.2.20210626 ruby-2.7.4,1 ruby27-bdb-0.6.6_8
WWW:    http://pkgtools.github.com/

Port:   portupgrade-devel-20180309,3
Path:   /usr/ports/ports-mgmt/portupgrade-devel
Info:   FreeBSD ports/packages management tool (devel version)
Maint:  bdrewery@FreeBSD.org
B-deps: indexinfo-0.3.1 libedit-3.1.20210216,1 libffi-3.3_1 libunwind-20201110 libyaml-0.2.5 ncurses-6.2.20210626 ruby-2.7.4,1
R-deps: db5-5.3.28_7 indexinfo-0.3.1 libedit-3.1.20210216,1 libffi-3.3_1 libunwind-20201110 libyaml-0.2.5 ncurses-6.2.20210626 ruby-2.7.4,1 ruby27-bdb-0.6.6_8
WWW:    http://pkgtools.github.com/


root@ik1-438-51137:/usr/ports # cd /usr/ports/ports-mgmt/portupgrade
root@ik1-438-51137:/usr/ports/ports-mgmt/portupgrade # make 

portsdb -Fu
portsdbはportupgradeに含まれるツールの1つです。
portsツリーをアップデート後は、INDEXからデータベースの更新を行います。

portupgradeはデータベースを参照しますので、INDEXを更新した場合はデータベースも更新してから作業します。
root@ik1-438-51137:~ # portsdb -Fu
Fetching the ports index ... /usr/bin/env  fetch -am -o /usr/ports/INDEX-12.bz2 https://www.FreeBSD.org/ports/INDEX-12.bz2
/usr/ports/INDEX-12.bz2                               2325 kB  749 kBps    03s
done
[Updating the portsdb <format:bdb_btree> in /usr/ports ... - 31505 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000.........18000.........19000.........20000.........21000.........22000.........23000.........24000.........25000.........26000.........27000.........28000.........29000.........30000.........31000..... ..... done]

portversion -v
portversionはportupgradeに含まれるツールの1つです。
portsツリーにあるパッケージとインストールされているパッケージのバージョンを比較します。

root@ik1-438-51137:~ # portversion -v
[Reading data from pkg(8) ... - 515 packages found - done]
ImageMagick6-6.9.12.12_1,1  =  up-to-date with port
adwaita-icon-theme-3.38.0   =  up-to-date with port
alsa-lib-1.2.2              =  up-to-date with port
aom-3.1.2                   =  up-to-date with port
argp-standalone-1.3_4       =  up-to-date with port
argyllcms-1.9.2_5           =  up-to-date with port
at-spi2-atk-2.34.2          =  up-to-date with port
at-spi2-core-2.36.0         =  up-to-date with port
atk-2.36.0                  =  up-to-date with port
autoconf-2.69_3             =  up-to-date with port
autoconf-wrapper-20131203   =  up-to-date with port
autoconf213-2.13.000227_7   =  up-to-date with port
automake-1.16.3             =  up-to-date with port
avahi-app-0.8               =  up-to-date with port
bash-5.1.8                  =  up-to-date with port
bash-completion-2.11,2      =  up-to-date with port
bdftopcf-1.1_2              =  up-to-date with port
binutils-2.33.1_4,1         =  up-to-date with port
bison-3.7.6,1               =  up-to-date with port
boost-jam-1.72.0            =  up-to-date with port
boost-libs-1.72.0_5         =  up-to-date with port
brotli-1.0.9,1              =  up-to-date with port
ca_root_nss-3.68            =  up-to-date with port
cairo-1.17.4,3              =  up-to-date with port
check-0.15.2                =  up-to-date with port
cmake-3.21.0                =  up-to-date with port
colord-1.3.5_1              =  up-to-date with port
cscope-15.9                 =  up-to-date with port
ctags-5.8                   =  up-to-date with port
cups-2.3.3op2               =  up-to-date with port
curl-7.78.0                 =  up-to-date with port
cvsps-2.1_2                 =  up-to-date with port
cyrus-sasl-2.1.27_2         =  up-to-date with port
dav1d-0.9.1                 =  up-to-date with port
db5-5.3.28_7                =  up-to-date with port
dbus-1.12.20_5              =  up-to-date with port
dbus-glib-0.112             =  up-to-date with port
dejavu-2.37_1               =  up-to-date with port
desktop-file-utils-0.26     =  up-to-date with port
dialog4ports-0.1.6          =  up-to-date with port
docbook-1.5                 =  up-to-date with port
docbook-sgml-4.5_1          =  up-to-date with port
docbook-xml-5.0_3           =  up-to-date with port
docbook-xsl-1.79.1_1,1      =  up-to-date with port
encodings-1.0.5,1           =  up-to-date with port
evdev-proto-5.8             =  up-to-date with port
expat-2.4.1                 =  up-to-date with port
fcgi-devkit-2.4.0_5         =  up-to-date with port
fcgiwrap-1.1.0_11           =  up-to-date with port
ffmpeg-4.4_2,1              =  up-to-date with port
fftw3-3.3.9                 =  up-to-date with port
font-bh-ttf-1.0.3_4         =  up-to-date with port
font-misc-ethiopic-1.0.4    =  up-to-date with port
font-misc-meltho-1.0.3_4    =  up-to-date with port
font-util-1.3.2             =  up-to-date with port
fontconfig-2.13.93_1,1      =  up-to-date with port
freetype2-2.10.4            =  up-to-date with port
frei0r-1.7.0.18             =  up-to-date with port
fribidi-1.0.10              =  up-to-date with port
galera26-26.4.9             =  up-to-date with port
gdbm-1.20                   =  up-to-date with port
gdk-pixbuf2-2.40.0          =  up-to-date with port
geoipupdate-4.8.0           =  up-to-date with port
gettext-runtime-0.21        =  up-to-date with port
gettext-tools-0.21          =  up-to-date with port
ghostscript9-agpl-base-9.52_19  =  up-to-date with port
ghostscript9-agpl-x11-9.52  =  up-to-date with port
giflib-5.2.1                =  up-to-date with port
git-2.32.0_1                =  up-to-date with port
glib-2.66.8,2               =  up-to-date with port
gmake-4.3_2                 =  up-to-date with port
gmp-6.2.1                   =  up-to-date with port
gnome_subr-1.0              =  up-to-date with port
gnuls-8.30                  =  up-to-date with port
gnutls-3.6.16               =  up-to-date with port
go-1.16.6,1                 =  up-to-date with port
gobject-introspection-1.66.1,1  =  up-to-date with port
google-perftools-2.9.1_1    =  up-to-date with port
gperf-3.1                   =  up-to-date with port
graphite2-1.3.14            =  up-to-date with port
gsed-4.8                    =  up-to-date with port
gsettings-desktop-schemas-3.38.0  =  up-to-date with port
gsfonts-8.11_8              =  up-to-date with port
gtk-doc-1.33.2              =  up-to-date with port
gtk-update-icon-cache-3.24.26  =  up-to-date with port
gtk3-3.24.29_1              =  up-to-date with port
harfbuzz-2.8.2              =  up-to-date with port
help2man-1.48.3             =  up-to-date with port
hicolor-icon-theme-0.17     =  up-to-date with port
html2text-1.3.2a,1          =  up-to-date with port
icu-69.1,1                  =  up-to-date with port
indexinfo-0.3.1             =  up-to-date with port
intltool-0.51.0_1           =  up-to-date with port
iso8879-1986_3              =  up-to-date with port
itstool-2.0.6               =  up-to-date with port
ja-groff-1.18.1_18          =  up-to-date with port
ja-less-382.262.03.01       =  up-to-date with port
ja-man-1.1j_9               =  up-to-date with port
jam-2.6                     =  up-to-date with port
java-zoneinfo-2021.a        =  up-to-date with port
javavmwrapper-2.7.7         =  up-to-date with port
jbig2dec-0.19               =  up-to-date with port
jbigkit-2.1_1               =  up-to-date with port
jpeg-turbo-2.0.6            =  up-to-date with port
jsoncpp-1.9.4               =  up-to-date with port
lame-3.100_3                =  up-to-date with port
lcms2-2.12                  =  up-to-date with port
libICE-1.0.10,1             =  up-to-date with port
libSM-1.2.3,1               =  up-to-date with port
libX11-1.7.2,1              =  up-to-date with port
libXScrnSaver-1.2.3_2       =  up-to-date with port
libXau-1.0.9                =  up-to-date with port
libXaw-1.0.14,2             =  up-to-date with port
libXcomposite-0.4.5,1       =  up-to-date with port
libXcursor-1.2.0            =  up-to-date with port
libXdamage-1.1.5            =  up-to-date with port
libXdmcp-1.1.3              =  up-to-date with port
libXext-1.3.4,1             =  up-to-date with port
libXfixes-5.0.3_2           =  up-to-date with port
libXft-2.3.3                =  up-to-date with port
libXi-1.7.10,1              =  up-to-date with port
libXinerama-1.1.4_2,1       =  up-to-date with port
libXmu-1.1.3,1              =  up-to-date with port
libXpm-3.5.13               =  up-to-date with port
libXrandr-1.5.2             =  up-to-date with port
libXrender-0.9.10_2         =  up-to-date with port
libXt-1.2.1,1               =  up-to-date with port
libXtst-1.2.3_2             =  up-to-date with port
libXxf86vm-1.1.4_3          =  up-to-date with port
libarchive-3.5.1,1          =  up-to-date with port
libargon2-20190702          =  up-to-date with port
libass-0.15.1               =  up-to-date with port
libdaemon-0.14_1            =  up-to-date with port
libdiff-0.1.0               =  up-to-date with port
libdrizzle-0.8_7            =  up-to-date with port
libdrm-2.4.107,1            =  up-to-date with port
libedit-3.1.20210216,1      =  up-to-date with port
libepoll-shim-0.0.20210418  =  up-to-date with port
libepoxy-1.5.8_1            =  up-to-date with port
libevent-2.1.12             =  up-to-date with port
libffi-3.3_1                =  up-to-date with port
libfontenc-1.1.4            =  up-to-date with port
libgcrypt-1.9.3             =  up-to-date with port
libgd-2.3.1,1               =  up-to-date with port
libglvnd-1.3.3              =  up-to-date with port
libgpg-error-1.42           =  up-to-date with port
libgsf-1.14.47_1            =  up-to-date with port
libiconv-1.16               =  up-to-date with port
libidn-1.35                 =  up-to-date with port
libidn2-2.3.2               =  up-to-date with port
libinotify-20180201_2       =  up-to-date with port
liblqr-1-0.4.2              =  up-to-date with port
libltdl-2.4.6               =  up-to-date with port
liblz4-1.9.3,1              =  up-to-date with port
libmaxminddb-1.6.0          =  up-to-date with port
libmcrypt-2.5.8_3           =  up-to-date with port
libnghttp2-1.44.0           =  up-to-date with port
libogg-1.3.5,4              =  up-to-date with port
libpaper-1.1.24.4           =  up-to-date with port
libpciaccess-0.16           =  up-to-date with port
libpthread-stubs-0.4        =  up-to-date with port
libraqm-0.7.1               =  up-to-date with port
libraw-0.20.2               =  up-to-date with port
librsvg2-rust-2.50.3_4      =  up-to-date with port
librtmp-2.4.20190330        =  up-to-date with port
libssh2-1.9.0_3,3           =  up-to-date with port
libtasn1-4.17.0             =  up-to-date with port
libtextstyle-0.21           =  up-to-date with port
libtheora-1.1.1_7           =  up-to-date with port
libtool-2.4.6_1             =  up-to-date with port
libudev-devd-0.4.2_1        =  up-to-date with port
libunistring-0.9.10_1       =  up-to-date with port
libunwind-20201110          =  up-to-date with port
libuv-1.41.0                =  up-to-date with port
libv4l-1.20.0_2             =  up-to-date with port
libva-2.12.0                =  up-to-date with port
libvdpau-1.4                =  up-to-date with port
libvorbis-1.3.7_2,3         =  up-to-date with port
libvpx-1.10.0               =  up-to-date with port
libwmf-0.2.12               =  up-to-date with port
libx264-0.163.3060          =  up-to-date with port
libxcb-1.14_1               =  up-to-date with port
libxkbcommon-1.3.0          =  up-to-date with port
libxkbfile-1.1.0            =  up-to-date with port
libxml2-2.9.12              =  up-to-date with port
libxslt-1.1.34_2            =  up-to-date with port
libyaml-0.2.5               =  up-to-date with port
libzip-1.7.3                =  up-to-date with port
lowdown-0.8.5               =  up-to-date with port
lua-resty-core-0.1.22       =  up-to-date with port
lua-resty-lrucache-0.11     =  up-to-date with port
luajit-openresty-2.1.20210510  =  up-to-date with port
lv-4.51.20200728            =  up-to-date with port
m4-1.4.19,1                 =  up-to-date with port
mariadb105-client-10.5.11   =  up-to-date with port
mariadb105-server-10.5.11   =  up-to-date with port
meson-0.58.1                =  up-to-date with port
minixmlto-0.0.3             =  up-to-date with port
mkfontscale-1.2.1           =  up-to-date with port
mpdecimal-2.5.1             =  up-to-date with port
mpfr-4.1.0                  =  up-to-date with port
msgpuck-2.0_3               =  up-to-date with port
nasm-2.15.05,1              =  up-to-date with port
nettle-3.7.3                =  up-to-date with port
nginx-full-1.20.1_6,2       <  needs updating (port has 1.20.1_7,2)
ninja-1.10.2,2              =  up-to-date with port
nspr-4.32                   =  up-to-date with port
oniguruma-6.9.7.1           =  up-to-date with port
opencl-3.0                  =  up-to-date with port
openjdk8-8.302.08.1         =  up-to-date with port
openjpeg-2.4.0              =  up-to-date with port
openldap-client-2.4.59_1    =  up-to-date with port
opus-1.3.1                  =  up-to-date with port
p11-kit-0.24.0              =  up-to-date with port
p5-Algorithm-C3-0.11        =  up-to-date with port
p5-Apache-LogFormat-Compiler-0.35  =  up-to-date with port
p5-Archive-Zip-1.68         =  up-to-date with port
p5-Authen-NTLM-1.09_1       =  up-to-date with port
p5-Authen-SASL-2.16_1       =  up-to-date with port
p5-B-Hooks-EndOfScope-0.24  =  up-to-date with port
p5-CGI-4.53                 =  up-to-date with port
p5-CGI-Emulate-PSGI-0.20_1  =  up-to-date with port
p5-CGI-PSGI-0.15_1          =  up-to-date with port
p5-CPAN-DistnameInfo-0.12_1  =  up-to-date with port
p5-CPAN-SQLite-0.199_2      =  up-to-date with port
p5-Cache-2.11               =  up-to-date with port
p5-Cache-Cache-1.08         =  up-to-date with port
p5-Cache-Memcached-1.30_1   =  up-to-date with port
p5-Class-C3-0.35            =  up-to-date with port
p5-Class-Data-Inheritable-0.08_1  =  up-to-date with port
p5-Class-ErrorHandler-0.04  =  up-to-date with port
p5-Class-Inspector-1.36     =  up-to-date with port
p5-Class-Method-Modifiers-2.13  =  up-to-date with port
p5-Class-Singleton-1.6      =  up-to-date with port
p5-Clone-0.45               =  up-to-date with port
p5-Convert-ASN1-0.31        =  up-to-date with port
p5-Convert-BinHex-1.125     =  up-to-date with port
p5-Convert-PEM-0.08_1       =  up-to-date with port
p5-Cookie-Baker-0.09        =  up-to-date with port
p5-Cpanel-JSON-XS-4.26      =  up-to-date with port
p5-Crypt-DES-2.07_2         =  up-to-date with port
p5-Crypt-DES_EDE3-0.01_2    =  up-to-date with port
p5-Crypt-DSA-1.17_1         =  up-to-date with port
p5-Crypt-MySQL-0.04_1       =  up-to-date with port
p5-Crypt-SSLeay-0.72_3      =  up-to-date with port
p5-DBD-SQLite-1.68          =  up-to-date with port
p5-DBD-SQLite2-0.38         =  up-to-date with port
p5-DBI-1.643                =  up-to-date with port
p5-Data-Buffer-0.04_1       =  up-to-date with port
p5-Data-OptList-0.112       =  up-to-date with port
p5-DateTime-1.54            =  up-to-date with port
p5-DateTime-Locale-1.32     =  up-to-date with port
p5-DateTime-TimeZone-2.47,1  =  up-to-date with port
p5-Devel-StackTrace-2.04    =  up-to-date with port
p5-Devel-StackTrace-AsHTML-0.15  =  up-to-date with port
p5-Digest-HMAC-1.04         =  up-to-date with port
p5-Digest-SHA1-2.13_1       =  up-to-date with port
p5-Dist-CheckConflicts-0.11_1  =  up-to-date with port
p5-Encode-Locale-1.05       =  up-to-date with port
p5-Error-0.17029            =  up-to-date with port
p5-Eval-Closure-0.14        =  up-to-date with port
p5-Exception-Class-1.45     =  up-to-date with port
p5-File-Cache-0.16_1        =  up-to-date with port
p5-File-HomeDir-1.006       =  up-to-date with port
p5-File-Listing-6.14        =  up-to-date with port
p5-File-NFSLock-1.29        =  up-to-date with port
p5-File-ShareDir-1.118      =  up-to-date with port
p5-File-Which-1.27          =  up-to-date with port
p5-Filesys-Notify-Simple-0.12_1  =  up-to-date with port
p5-GD-2.73                  =  up-to-date with port
p5-GSSAPI-0.28_1            =  up-to-date with port
p5-HTML-Parser-3.76         =  up-to-date with port
p5-HTML-Tagset-3.20_1       =  up-to-date with port
p5-HTTP-Body-1.22           =  up-to-date with port
p5-HTTP-Cookies-6.10        =  up-to-date with port
p5-HTTP-Date-6.05           =  up-to-date with port
p5-HTTP-Entity-Parser-0.25  =  up-to-date with port
p5-HTTP-Headers-Fast-0.21   =  up-to-date with port
p5-HTTP-Message-6.33        =  up-to-date with port
p5-HTTP-MultiPartParser-0.02  =  up-to-date with port
p5-HTTP-Negotiate-6.01_1    =  up-to-date with port
p5-Hash-MultiValue-0.16     =  up-to-date with port
p5-Heap-0.80_1              =  up-to-date with port
p5-IO-HTML-1.001_1          =  up-to-date with port
p5-IO-SessionData-1.03_1    =  up-to-date with port
p5-IO-Socket-INET6-2.72_1   =  up-to-date with port
p5-IO-Socket-SSL-2.071      =  up-to-date with port
p5-IO-String-1.08_1         =  up-to-date with port
p5-IO-Tty-1.16              =  up-to-date with port
p5-IPC-Run-20200505.0       =  up-to-date with port
p5-IPC-ShareLite-0.17_1     =  up-to-date with port
p5-Imager-1.012             =  up-to-date with port
p5-JSON-MaybeXS-1.004003    =  up-to-date with port
p5-LWP-MediaTypes-6.04      =  up-to-date with port
p5-LWP-Protocol-https-6.10  =  up-to-date with port
p5-Locale-gettext-1.07      =  up-to-date with port
p5-Locale-libintl-1.32      =  up-to-date with port
p5-MIME-Tools-5.509,2       =  up-to-date with port
p5-MRO-Compat-0.13          =  up-to-date with port
p5-Mail-Tools-2.21          =  up-to-date with port
p5-Module-Implementation-0.09_1  =  up-to-date with port
p5-Module-Runtime-0.016     =  up-to-date with port
p5-Mozilla-CA-20200520      =  up-to-date with port
p5-Net-HTTP-6.21            =  up-to-date with port
p5-Net-SSLeay-1.90          =  up-to-date with port
p5-POSIX-strftime-Compiler-0.41  =  up-to-date with port
p5-PSGI-1.102_1             =  up-to-date with port
p5-Package-Stash-0.39       =  up-to-date with port
p5-Package-Stash-XS-0.29    =  up-to-date with port
p5-Params-Util-1.102        =  up-to-date with port
p5-Params-Validate-1.30     =  up-to-date with port
p5-Params-ValidationCompiler-0.30_1  =  up-to-date with port
p5-Path-Class-0.37          =  up-to-date with port
p5-PathTools-3.7500         =  up-to-date with port
p5-Plack-1.0047             =  up-to-date with port
p5-Role-Tiny-2.002004       =  up-to-date with port
p5-SOAP-Lite-1.27           =  up-to-date with port
p5-SOAP-Transport-HTTP-Plack-0.03_2  =  up-to-date with port
p5-Socket6-0.29             =  up-to-date with port
p5-Specio-0.47              =  up-to-date with port
p5-Stream-Buffered-0.03_1   =  up-to-date with port
p5-String-CRC32-2.100       =  up-to-date with port
p5-Sub-Exporter-0.988       =  up-to-date with port
p5-Sub-Exporter-Progressive-0.001013  =  up-to-date with port
p5-Sub-Identify-0.14        =  up-to-date with port
p5-Sub-Install-0.928_1      =  up-to-date with port
p5-Sub-Quote-2.006006       =  up-to-date with port
p5-Task-Weaken-1.06         =  up-to-date with port
p5-Text-Unidecode-1.30      =  up-to-date with port
p5-TimeDate-2.33,1          =  up-to-date with port
p5-Try-Tiny-0.30            =  up-to-date with port
p5-URI-5.09                 =  up-to-date with port
p5-Unicode-EastAsianWidth-12.0  =  up-to-date with port
p5-Variable-Magic-0.62      =  up-to-date with port
p5-WWW-Form-UrlEncoded-0.26  =  up-to-date with port
p5-WWW-RobotRules-6.02_1    =  up-to-date with port
p5-XML-Atom-0.43            =  up-to-date with port
p5-XML-LibXML-2.0207,1      =  up-to-date with port
p5-XML-NamespaceSupport-1.12  =  up-to-date with port
p5-XML-Parser-2.44          =  up-to-date with port
p5-XML-Parser-Lite-0.722    =  up-to-date with port
p5-XML-SAX-1.02             =  up-to-date with port
p5-XML-SAX-Base-1.09        =  up-to-date with port
p5-XML-SAX-Expat-0.51_1     =  up-to-date with port
p5-XML-SAX-ExpatXS-1.33_2   =  up-to-date with port
p5-XML-XPath-1.44           =  up-to-date with port
p5-XMLRPC-Lite-0.717        =  up-to-date with port
p5-YAML-1.30                =  up-to-date with port
p5-YAML-Shell-0.71          =  up-to-date with port
p5-YAML-Syck-1.34           =  up-to-date with port
p5-libwww-6.55              =  up-to-date with port
p5-namespace-autoclean-0.29  =  up-to-date with port
p5-namespace-clean-0.27     =  up-to-date with port
pango-1.48.7                =  up-to-date with port
pciids-20210627             =  up-to-date with port
pcre-8.44                   =  up-to-date with port
pcre2-10.37                 =  up-to-date with port
perl5-5.32.1_1              =  up-to-date with port
php74-7.4.22_1              =  up-to-date with port
php74-bcmath-7.4.22_1       =  up-to-date with port
php74-bz2-7.4.22_1          =  up-to-date with port
php74-calendar-7.4.22_1     =  up-to-date with port
php74-ctype-7.4.22_1        =  up-to-date with port
php74-curl-7.4.22_1         =  up-to-date with port
php74-dom-7.4.22_1          =  up-to-date with port
php74-exif-7.4.22_1         =  up-to-date with port
php74-extensions-1.0        =  up-to-date with port
php74-fileinfo-7.4.22_1     =  up-to-date with port
php74-filter-7.4.22_1       =  up-to-date with port
php74-gd-7.4.22_1           =  up-to-date with port
php74-gettext-7.4.22_1      =  up-to-date with port
php74-gmp-7.4.22_1          =  up-to-date with port
php74-iconv-7.4.22_1        =  up-to-date with port
php74-intl-7.4.22_1         =  up-to-date with port
php74-json-7.4.22_1         =  up-to-date with port
php74-mbstring-7.4.22_1     =  up-to-date with port
php74-mysqli-7.4.22_1       =  up-to-date with port
php74-opcache-7.4.22_1      =  up-to-date with port
php74-openssl-7.4.22_1      =  up-to-date with port
php74-pdo-7.4.22_1          =  up-to-date with port
php74-pdo_mysql-7.4.22_1    =  up-to-date with port
php74-pdo_sqlite-7.4.22_1   =  up-to-date with port
php74-pecl-APCu-5.1.20      =  up-to-date with port
php74-pecl-imagick-3.5.1    =  up-to-date with port
php74-pecl-mcrypt-1.0.4     =  up-to-date with port
php74-phar-7.4.22_1         =  up-to-date with port
php74-posix-7.4.22_1        =  up-to-date with port
php74-session-7.4.22_1      =  up-to-date with port
php74-simplexml-7.4.22_1    =  up-to-date with port
php74-soap-7.4.22_1         =  up-to-date with port
php74-sqlite3-7.4.22_1      =  up-to-date with port
php74-tokenizer-7.4.22_1    =  up-to-date with port
php74-xml-7.4.22_1          =  up-to-date with port
php74-xmlreader-7.4.22_1    =  up-to-date with port
php74-xmlrpc-7.4.22_1       =  up-to-date with port
php74-xmlwriter-7.4.22_1    =  up-to-date with port
php74-zip-7.4.22_1          =  up-to-date with port
php74-zlib-7.4.22_1         =  up-to-date with port
phpMyAdmin5-php74-5.1.1     =  up-to-date with port
pixman-0.40.0_1             =  up-to-date with port
pkg-1.16.3                  <  needs updating (port has 1.17.1)
pkgconf-1.7.4,1             =  up-to-date with port
png-1.6.37_1                =  up-to-date with port
polkit-0.119                =  up-to-date with port
poppler-data-0.4.10         =  up-to-date with port
portmaster-3.19_31          =  up-to-date with port
portupgrade-2.4.16,2        =  up-to-date with port
postgresql12-client-12.7    =  up-to-date with port
psutils-1.17_5              =  up-to-date with port
py38-Babel-2.9.1            =  up-to-date with port
py38-Jinja2-2.11.2_1        =  up-to-date with port
py38-acme-1.17.0,1          =  up-to-date with port
py38-alabaster-0.7.12       =  up-to-date with port
py38-certbot-1.17.0,1       =  up-to-date with port
py38-certbot-nginx-1.17.0   =  up-to-date with port
py38-certifi-2021.5.30      =  up-to-date with port
py38-cffi-1.14.6            =  up-to-date with port
py38-chardet-4.0.0,1        =  up-to-date with port
py38-configargparse-1.4.1   =  up-to-date with port
py38-configobj-5.0.6_1      =  up-to-date with port
py38-cryptography-3.3.2     =  up-to-date with port
py38-cython-0.29.24         =  up-to-date with port
py38-distro-1.5.0           =  up-to-date with port
py38-docutils-0.17.1        =  up-to-date with port
py38-gi-docgen-2021.5_1     =  up-to-date with port
py38-idna-2.10              =  up-to-date with port
py38-imagesize-1.2.0        =  up-to-date with port
py38-importlib-metadata-3.3.0_1  =  up-to-date with port
py38-josepy-1.8.0           =  up-to-date with port
py38-libxml2-2.9.12         =  up-to-date with port
py38-markdown-3.3.4         =  up-to-date with port
py38-markupsafe-1.1.1_1     =  up-to-date with port
py38-openssl-20.0.1         =  up-to-date with port
py38-packaging-21.0         =  up-to-date with port
py38-parsedatetime-2.6      =  up-to-date with port
py38-pycparser-2.20         =  up-to-date with port
py38-pygments-2.7.2         =  up-to-date with port
py38-pyinotify-0.9.6        =  up-to-date with port
py38-pyparsing-2.4.7        =  up-to-date with port
py38-pyrfc3339-1.1          =  up-to-date with port
py38-pysocks-1.7.1          =  up-to-date with port
py38-pystemmer-2.0.1        =  up-to-date with port
py38-pytz-2021.1,1          =  up-to-date with port
py38-repoze.sphinx.autointerface-0.8  =  up-to-date with port
py38-requests-2.25.1        =  up-to-date with port
py38-requests-toolbelt-0.9.1  =  up-to-date with port
py38-setuptools-57.0.0      =  up-to-date with port
py38-setuptools_scm-4.1.2_1  =  up-to-date with port
py38-six-1.16.0             =  up-to-date with port
py38-smartypants-2.0.1      =  up-to-date with port
py38-snowballstemmer-2.1.0  =  up-to-date with port
py38-sphinx-3.5.2,1         =  up-to-date with port
py38-sphinx_rtd_theme-0.4.3  =  up-to-date with port
py38-sphinxcontrib-applehelp-1.0.2  =  up-to-date with port
py38-sphinxcontrib-devhelp-1.0.2  =  up-to-date with port
py38-sphinxcontrib-htmlhelp-1.0.3  =  up-to-date with port
py38-sphinxcontrib-jsmath-1.0.1  =  up-to-date with port
py38-sphinxcontrib-qthelp-1.0.3  =  up-to-date with port
py38-sphinxcontrib-serializinghtml-1.1.4  =  up-to-date with port
py38-sqlite3-3.8.11_7       <  needs updating (port has 3.9.6_7)
py38-toml-0.10.2            =  up-to-date with port
py38-typogrify-2.0.7        =  up-to-date with port
py38-urllib3-1.26.6,1       =  up-to-date with port
py38-zipp-3.4.0             =  up-to-date with port
py38-zope.component-4.2.2   =  up-to-date with port
py38-zope.event-4.1.0       =  up-to-date with port
py38-zope.interface-5.3.0   =  up-to-date with port
python38-3.8.11             =  up-to-date with port
re2c-0.14.3                 =  up-to-date with port
readline-8.1.1              =  up-to-date with port
rhash-1.4.2                 =  up-to-date with port
rsync-3.2.3_1               =  up-to-date with port
ruby-2.7.4,1                =  up-to-date with port
ruby27-bdb-0.6.6_8          =  up-to-date with port
ruby27-gems-3.0.8           =  up-to-date with port
rubygem-rdoc-6.3.2          =  up-to-date with port
rust-1.53.0                 =  up-to-date with port
rust-cbindgen-0.20.0        =  up-to-date with port
sdocbook-xml-1.1_2,2        =  up-to-date with port
shared-mime-info-2.0        =  up-to-date with port
spidermonkey78-78.7.0_5     =  up-to-date with port
sqlite3-3.35.5_3,1          =  up-to-date with port
sudo-1.9.7p1                =  up-to-date with port
t1lib-5.1.2_5,1             =  up-to-date with port
tcl86-8.6.11_1              =  up-to-date with port
texi2html-5.0_2,1           =  up-to-date with port
texinfo-6.8,1               =  up-to-date with port
tiff-4.3.0                  =  up-to-date with port
tpm-emulator-0.7.4_2        =  up-to-date with port
trousers-0.3.14_3           =  up-to-date with port
uchardet-0.0.7              =  up-to-date with port
unixODBC-2.3.9              =  up-to-date with port
v4l_compat-1.20.0_2         =  up-to-date with port
vala-0.48.10,1              =  up-to-date with port
vim-8.2.3081                =  up-to-date with port
wayland-1.19.0_1            =  up-to-date with port
wayland-protocols-1.21      =  up-to-date with port
webp-1.2.0                  =  up-to-date with port
x265-3.4_1                  =  up-to-date with port
xcb-proto-1.14.1            =  up-to-date with port
xkbcomp-1.4.4               =  up-to-date with port
xkeyboard-config-2.32       =  up-to-date with port
xmlcatmgr-2.2_2             =  up-to-date with port
xmlcharent-0.3_2            =  up-to-date with port
xorg-fonts-truetype-7.7_1   =  up-to-date with port
xorg-macros-1.19.3          =  up-to-date with port
xorgproto-2021.4            =  up-to-date with port
xtrans-1.4.0                =  up-to-date with port
xvid-1.3.7,1                =  up-to-date with port
xxhash-0.8.0                =  up-to-date with port
yajl-2.1.0                  =  up-to-date with port
yelp-tools-3.38.0           =  up-to-date with port
yelp-xsl-40.2               =  up-to-date with port
zip-3.0_1                   =  up-to-date with port
zstd-1.5.0                  =  up-to-date with port

次のように実行すると、アップデートが必要なパッケージのみ表示されます。

root@ik1-438-51137:~ # portversion -v | grep "<"
[Reading data from pkg(8) ... - 515 packages found - done]
nginx-full-1.20.1_6,2       <  needs updating (port has 1.20.1_7,2)
pkg-1.16.3                  <  needs updating (port has 1.17.1)
py38-sqlite3-3.8.11_7       <  needs updating (port has 3.9.6_7)

pkg version -vl "<"
このコマンドでも同じようにアップデートが必要なパッケージが判明します。

root@ik1-438-51137:~ # pkg version -vl "<"
nginx-full-1.20.1_6,2              <   needs updating (port has 1.20.1_7,2) 
pkg-1.16.3                         <   needs updating (port has 1.17.1) 
py38-sqlite3-3.8.11_7              <   needs updating (port has 3.9.6_7)

portupgrade -r パッケージ名
依存関係のあるパッケージを先にアップデートしてから指定したパッケージのアップデートを実行します。

root@ik1-438-51137:~ # portupgrade -r nginx-full

<省略>

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.

===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/sbin/nginx
/usr/local/libexec/nginx/ngx_http_passenger_module.so

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
https://nginx.org/
===>  Cleaning for rubygem-rake-13.0.6
===>  Cleaning for nginx-full-1.20.1_7,2
--->  Cleaning out obsolete shared libraries

portupgrade -a
アップデートのあるパッケージをすべてアップデートします。

root@ik1-438-51137:~ # portupgrade -a
[Reading data from pkg(8) ... - 516 packages found - done]
まとめ

ports Collectioをインストールしたあとは、時間の経過とともに古くなるって行きますので更新が必要です。

portsツリーの更新

root@ik1-438-51137:~ # git -C /usr/ports pull

INDEXからDBを更新

root@ik1-438-51137:~ # portsdb -Fu

バージョン比較

root@ik1-438-51137:~ # portversion -v

アップデートが必要なアプリケーションの表示(その1)

root@ik1-438-51137:~ # portversion -v | grep "<"

アップデートが必要なアプリケーションの表示(その2)

root@ik1-438-51137:~ # pkg version -vl "<"

依存関係のあるパッケージを含めてアップデート

root@ik1-438-51137:~ # portupgrade -r パッケージ名

アップデート可能なすべてのパッケージをアップデート

root@ik1-438-51137:~ # portupgrade -a
スポンサーリンク