CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 portsAll times are CET
Port details

ports-mgmt/pkg_replace 20260622

Utility for upgrading installed packages

Port info

Maintainer
kdeguchi@sz.tokoha-u.ac.jp
Packages
latest: 20260622
Upstream
up to date
Last update
to 20260622 · faf95f216c
Quarterly
2026Q4: 20260622
Formerly
sysutils/pkg_replace until 2007-02-05
WWW
https://github.com/kdeguchi/pkg_replace
Links
cgit · VuXML

Install

Package
# pkg install pkg_replace
installs 20260622 from latest; from quarterly (2026Q4) 20260622
Port
# cd /usr/ports/ports-mgmt/pkg_replace && make install clean
# make -C /usr/ports/ports-mgmt/pkg_replace config  # change options first
Size
24 KiB download · 71 KiB installed
Depends on
nothing
License
CC0-1.0
Options
1 of 1 on in the package: DOCS
pkg-message
Shown after installing
pkg_replace options changed. For more information,
refer to pkg_replace(1).


You can use various features.

-IGNORE, USE_PKGS
-BEFOREBUILD, AFTERBUILD, BEFOREINSTALL, AFTERINSTALL
-User defined functions

See examples in /usr/local/etc/pkg_replace/pkg_replace.conf.sample.

If you want to use those features,
edit "/usr/local/etc/pkg_replace/pkg_replace.conf".
Shown after upgrading
To clean cache files in the PKG_REPLACE_DB_DIR,
you should execute the following command.

  pkg_replace --cleandb
Shown after removing
To really remove the pkg_replace port,
please remove the the PKG_REPLACE_DB_DIR.
Default: PKG_REPLACE_DB_DIR=/var/db/pkg_replace

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 162026062220260622–
FreeBSD 152026062220260622–
FreeBSD 14202606222026062220260622

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 152026062220260622–
FreeBSD 14202606222026062220260622

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 20260622.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (85)

Yusuf Yaman (nxjoseph) · 20260622
ports-mgmt/pkg_replace: Update 20260503 => 20260622

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260622

PR:		296200
Approved by:	osa, vvd (Mentors, implicit)
MFH:		2026Q2
faf95f216c
Yusuf Yaman (nxjoseph) · 20260503
ports-mgmt/pkg_replace: Update 20260219 => 20260503

Changelogs:
- https://github.com/kdeguchi/pkg_replace/releases/tag/20260502
- https://github.com/kdeguchi/pkg_replace/releases/tag/20260503

Commit log:
https://github.com/kdeguchi/pkg_replace/compare/20260219...20260503

PR:		294964
Reported by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
Approved by:	vvd (co-mentor)
9e17700266
Vladimir Druzenko (vvd) · 20260219
ports-mgmt/pkg_replace: Update 20260209 => 20260219

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260219

PR:	293452
030a1218bc
Vladimir Druzenko (vvd) · 20260209
ports-mgmt/pkg_replace: Update 20260201 => 20260209

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260209

PR:	293055
d3ca18644b
Vladimir Druzenko (vvd) · 20260201
ports-mgmt/pkg_replace: Update 20260128 => 20260201

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260201

PR:	292858
7b9da66191
Vladimir Druzenko (vvd) · 20260128
ports-mgmt/pkg_replace: Update 20260127 => 20260128

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260128

PR:	292777
728e2dfc74
Vladimir Druzenko (vvd) · 20260127
ports-mgmt/pkg_replace: Update 20260126 => 20260127

Changelog:
- Cleanup man page pkg_replace.1.
- Changed the behavior of get_pkgname_from_portdir() to detect updated
  ports.
https://github.com/kdeguchi/pkg_replace/releases/tag/20260127

Add upgrade and remove to pkg-message.

PR:	292754
a065e60592
Vladimir Druzenko (vvd) · 20260126
ports-mgmt/pkg_replace: Update 20260121 => 20260126

Changelog:
- Fix behavior of `pkg_replace -V`
- Improved execution speed using cache files `make -V FLAVORS`
- Cleanup code
- Update man page pkg_replace.1
https://github.com/kdeguchi/pkg_replace/releases/tag/20260126

PR:	292720
49da6f759f
Vladimir Druzenko (vvd) · 20260121
ports-mgmt/pkg_replace: Update 20260115 => 20260121

Changelog:
https://github.com/kdeguchi/pkg_replace/releases/tag/20260121

PR:	292623
76db1d9a63
Vladimir Druzenko (vvd) · 20260115
ports-mgmt/pkg_replace: Update 20240819 => 20260115

Changelog:
 * Fix typo
 * Fix issue with --batch mode
https://github.com/kdeguchi/pkg_replace/releases/tag/20260115

PR:	292473
cbab628d05
Zsolt Udvari (uzsolt) · 20240819
ports-mgmt/pkg_replace: update to 20240819

Changelog: https://github.com/kdeguchi/pkg_replace/releases

PR:		279482
Approved by:	submitter is maintainer
101f9f2c7d
Koichiro Iwao (meta) · 20240530
ports-mgmt/pkg_replace: Update to 20240530

PR:		279281
Changes:	https://github.com/kdeguchi/pkg_replace/releases/tag/20240530
Changes:	https://github.com/kdeguchi/pkg_replace/releases/tag/20240526
Changes:	https://github.com/kdeguchi/pkg_replace/releases/tag/20240525
d9731c07d4
Li-Wen Hsu (lwhsu) · 20240518
ports-mgmt/pkg_replace: Update to 20240518

PR:		279127
0388df5cca
Li-Wen Hsu (lwhsu) · 20240514
ports-mgmt/pkg_replace: Update to 20240514

PR:		278978
74e2b76274
Li-Wen Hsu (lwhsu) · 20240507
ports-mgmt/pkg_replace: Update to 20240507

PR:		278823
27d05a071a
Daniel Engberg (diizzy) · 20240303
ports-mgmt/pkg_replace: Update to 20240303

Changelog: https://github.com/kdeguchi/pkg_replace/releases/tag/20240303

PR:		277440
72fbf11742
Fernando Apesteguía (fernape) · 20240205
ports-mgmt/pkg_replace: Update to 20240205

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases/tag/20240205

Improved handling of SUBPACKAGES feature.

PR:		276827
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
061a7bb000
Koichiro Iwao (meta) · 20240131
ports-mgmt/pkg_replace: Update to 20240131

PR:		276742
Changes:	https://github.com/kdeguchi/pkg_replace/releases/tag/20240131
b29649835d
Muhammad Moinur Rahman (bofh) · 20231008
ports-mgmt/pkg_replace: Sanitize MANPREFIX

Approved by:	portmgr (blanket)
b3fb09d8b0
Fernando Apesteguía (fernape) · 20231008
ports-mgmt/pkg_replace: Update to 20231008

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases/tag/20231008

*Check the pkg command if it is installed or not.
*Improved FLAVOR handling when installing new packages.
 See example section in pkg_replace(1).

PR:		274390
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
12281627b9
Koichiro Iwao (meta) · 20230921
ports-mgmt/pkg_replace: Update to 20230921

* Fix bug when FLAVOR is lost, e.g. print/ghostscript10.

PR:		273991
4b364d442d
Li-Wen Hsu (lwhsu) · 20230418
ports-mgmt/pkg_replace: Update to 20230418

PR:		272860
23b92eb2c1
Hiroki Tagato (tagattie) · 20230327
ports-mgmt/pkg_replace: update to 20230327

Changelog:
* Fix handling relative path.

https://github.com/kdeguchi/pkg_replace/releases/tag/20230327

PR:		270477
Reported by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
bd9efa748f
Koichiro Iwao (meta) · 20230320
ports-mgmt/pkg_replace: Update to 20230320

PR:		270356
Changes:	https://github.com/kdeguchi/pkg_replace/releases/tag/20230320
84b204cc2f
Fernando Apesteguía (fernape) · 20230317
ports-mgmt/pkg_replace: update to 20230317

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases/tag/20230317

Fix bug for fetch files (`make -DBATCH checksum` error).

PR:		270280 270274
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
ba35ba3b36
Fernando Apesteguía (fernape) · 20230202
ports-mgmt/pkg_replace: update to 20230202

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases

 * Replace '\ ' -> '[[:space:]]'.
 * Update man page.
 * Fix variable that should not be enclosed in double quotes.
 * Fix trap action.
 * Fix message about locked packages.
 * Cleanup code.

PR:		269285
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
aec5907aed
Fernando Apesteguía (fernape) · 20230119
ports-mgmt/pkg_replace: update to 20230119

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases

 * Enabled to handle locked packages with new "-U" option. If "-U" option is not
   present, locked packages are skipped. See pkg_replace(1).
 * Variables containing file and directory are enclosed in double quotes.
 * Fix trap action.
 * Cleanup code.

PR:		269043
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
2d3cb8388d
Nuno Teixeira (eduardo) · 20230107
ports-mgmt/pkg_replace: Update to 20230107

- Define LICENSE_FILE

ChangeLog:
https://github.com/kdeguchi/pkg_replace/compare/20230101...20230106

PR:		268778
4f88a48c0e
Li-Wen Hsu (lwhsu) · 20230101
ports-mgmt/pkg_replace: Update to 20230101

Release note: https://github.com/kdeguchi/pkg_replace/releases/tag/20221228

PR:		268605
99b701071b
Koichiro Iwao (meta) · 20221222
ports-mgmt/pkg_replace: Update to 20221222

PR:		268364
9cf57efb9e
Koichiro Iwao (meta) · 20221212
pots-mgmt/pkg_replace: Update to 20221212

PR:		268193
7cf38b8bd5
Koichiro Iwao (meta) · 20221128
ports-mgmt/pkg_replace: Update to 20221128

- Fix dependencies checking in get_depend_pkgnames() and
  get_require_pkgnames()

PR:		268026
Sponsored by:	Miracle Linux
244d154d1d
Fernando Apesteguía (fernape) · 20221012
ports-mgmt/pkg_replace: update to 20222012

Fix warn about PKG_SUFX on every fetch / build

PR:		267030
Reported by:	junchoon@dec.sakura.ne.jp
Approved by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
1721ff69ec
Fernando Apesteguía (fernape) · 20221011
ports-mgmt/pkg_replace: update to 20221011

ChangeLog: https://github.com/kdeguchi/pkg_replace/releases/tag/20221011

Fix bugs about PKG_SUFX.

PR:		266961
Reported by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
MFH:		2022Q4 (bugfix release)
370e928ac1
Stefan Eßer (se) · 20220304
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 20220304
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Tobias C. Berner (tcberner) · 20220304
ports-mgmt: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  "Waitman Gobble" <uzimac@da3m0n8t3r.com>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alex Stangl <alex@stangl.us>
  *  Anders F Bjorklund <afb@users.sourceforge.net>
  *  Benjamin Lutz
  *  Brendan Molloy <brendan+freebsd@bbqsrc.net>
  *  Conrad J. Sabatier <conrads@cox.net>
  *  Edwin Groothuis (edwin@mavetju.org)
  *  Emanuel Haupt <ehaupt@FreeBSD.org>
  *  Gabriel Linder <linder.gabriel@gmail.com>
  *  Heiner <h.eichmann@gmx.de>
  *  Ilya A. Arkhipov <rum1cro@yandex.ru>
  *  John Marino <marino@FreeBSD.org>
  *  Jun-ichiro itojun Hagino <itojun@itojun.org>
  *  Kubilay Kocak <koobs@FreeBSD.org>
  *  Mamoru Sakaue / MwGhennndo
  *  Martin Kammerhofer
  *  Matthew Seaman
  *  Matthew Seaman <m.seaman@infracaninophile.co.uk>
  *  Matthias Andree <mandree@FreeBSD.org>
  *  Matthias Schmidt
  *  Pawel Pekala <pawel@FreeBSD.org>
  *  Philip M. Gollucci <pgollucci@p6m7g8.com>
  *  Philipp Wuensche <cryx-ports@h3q.com>
  *  Richard Gallamore <ultima@FreeBSD.org>
  *  Romain Tartiere <romain@FreeBSD.org>
  *  Romain Tartiere <romain@blogreen.org>
  *  Securedog <securedog@users.sourceforge.jp>
  *  Sergei Kolobov <sergei@kolobov.com>
  *  Shaun Amott <shaun@inerd.com>
  *  Stefan Walter <sw@gegenunendlich.de>
  *  Stephen Hurd <shurd@FreeBSD.org>
  *  Timothy Redaelli <drizzt@gufi.org>
  *  Tom Hukins <tom@FreeBSD.org>
  *  Vasil Dimov <vd@datamax.bg>
  *  Vladimir Chukharev
  *  Yanhui Shen <shen.elf@gmail.com>
  *  Zane C, Bowers <vvelox@vvelox.net>
  *  kmoore@FreeBSD.org

With hat:	portmgr
9c165b9835
Jason E. Hale (jhale) · 20220304
ports-mgmt/pkg_replace: Update to 20220304

PR:		262312
c0fea4b10f
Kevin Bowling (kbowling) · 20210726
ports-mgmt/pkg_replace: update to 20210726

Support new '.pkg' package suffix

PR:		257424
9cc7149a9a
Mathieu Arnold (mat) · 20200821
Remove # $FreeBSD$ from Makefiles.
305f148f48
Fernando Apesteguía (fernape) · 20200821
ports-mgmt/pkg_replace: update to 20200821

ChangeLog: https://github.com/kdeguchi/pkg_replace/blob/master/ChangeLog

 * Fix bug in function install_package

PR:     248919
Submitted by:   kdeguchi@sz.tokoha-u.ac.jp (maintainer)
MFH:    2020Q3 (runtime fix)
79e0b26c8f
Li-Wen Hsu (lwhsu) · 20200803
Update to 20200803

PR:		248445
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
db5d170bc3
Li-Wen Hsu (lwhsu) · 20200717
Update to 20200717

PR:		248034
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
d444a1556f
Li-Wen Hsu (lwhsu) · 20200623
Update to 20200623

PR:		247513
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
5799652577
Koichiro Iwao (meta) · 20200622
ports-mgmt/pkg_replace: Update to 20200622

* Fix flavor check in set_pkginfo_install and set_pkginfo_replace
* Cleanup code

PR:		247468
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
783af05472
Li-Wen Hsu (lwhsu) · 20200618
- Update to 20200618

PR:		247366
Submitted by:	maintainer
16db0dcec6
Hiroki Tagato (tagattie) · 20200602
Update to 20200602

Changelog:
- Fix check package's dependencies

PR:		246926
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
Approved by:	mentors (implicit)
6fdb016597
Oleksii Samorukov (samm) · 20200522
ports-mgmt/pkg_replace: update to 20200522

- Fix bugs for origin and path
- Code cleanup
- Support FLAVORS 'origin@flavor' (see pkg_replace(1))

Approved by: araujo (mentor)
Differential Revision: https://reviews.freebsd.org/D25004
PR: 246708
25791ceb04
Hiroki Tagato (tagattie) · 20200504
Update to 20200504

Changelog:
- Support OVERLAYS
- Support FLAVOR

PR:		246433
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
Approved by:	ehaupt (mentor)
5ac12e7369
Dmitry Marakasov (amdmi3) · 20191018
- Update to 20191018

PR:		241320
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
b463b7c5ce