CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 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 · Report wrong data

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)

Steve Wills (swills) · 20190827
ports-mgmt/pkg_replace: Update to 20190827

PR:		240142
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
ee649d886a
Mathieu Arnold (mat) · 20181024
Convert to UCL & cleanup pkg-message (categories [p-r])
d2f3167e02
Dmitry Marakasov (amdmi3) · 20181024
- Add LICENSE_FILE - Switch to options helpers - Update WWW

Approved by:	portmgr blanket
1ae1028e1e
Steve Wills (swills) · 20181024
ports-mgmt/pkg_replace: update to 20181024

PR:		232695
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
31a03e4eb4
Steve Wills (swills) · 20180927
ports-mgmt/pkg_replace: Update to 20180927

PR:		231749
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
42e5331589
Steve Wills (swills) · 20180530
ports-mgmt/pkg_replace: update to 20180530

PR:		228627
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
2e4f2a6565
Koichiro Iwao (meta) · 20180424
ports-mgmt/pkg_replace: Update to 20180424

- Cleanup code
- Speed up and strictly check package's dependencies
- While here, pet portlint by using pkg-plist instead of PLIST_FILES

PR:		227730
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
Approved by:    pi (mentor)
d6cdf7ade4
Thomas Zander (riggs) · 20180314
Update to upstream version 20180314

Maintainer log:
- Support pkgng only
- Clean up code

PR:		226619
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
f769ff9546
Jochen Neumeister (joneum) · 20170517
- Update to 20170517 - Add LICENSE

* Add --automatic option. This option sets automatic flag for the package.
* Delete --noindex option, add --index option. When pkg_replace checks the dependencies before building the target packages, do "make package-depends-list" as default. This is more strictly checking the dependencies.

PR:	219397
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (Maintainer)
Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D10849
f69478f463
Jason E. Hale (jhale) · 20161113
Fix distinfo

PR:		214969
Submitted by:	<goto-freebsd@on-link.jp>
Approved by:	just fix it
bb66fd270d
Alex Kozlov (ak) · 20161113
- Update to 20161113

PR:	214462
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
cb26a8d899
Pawel Pekala (pawel) · 20160411
Update to version 20160411

PR:		208689
Submitted by:	maintainer
7136e4a1cf
Pawel Pekala (pawel) · 20141218
Update to version 20141218

Changelog:

* Fix pkgorigin format bug.

PR:		196148
Submitted by:	maintainer
3db47af714
Danilo Egea Gondolfo (danilo) · 20141117
- Update to 20141117

PR:		195131
Submitted by:	kdeguchi@sz.tokoha-u.ac.jp (maintainer)
d2ddcbb5a0
Alex Kozlov (ak) · 20141022
- Update to 20141022 [1]  * Set -k (keep going) option when -O (don't check dependencies) is set. - Remove PLIST_DIRSTRY

PR:	194524 [1]
Submitted by:	Ken DEGUCHI <kdeguchi at sz.tokoha-u.ac.jp> (maintainer) [1]
98482df214
Alex Kozlov (ak) · 20140721
- Update to 20140721   * Increase pkg_replace compatibility with portupgrade - Update MASTER_SITES - Remove support for pkg_tools - Use PLIST_FILES

PR:	193304
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
42558a6f14
Alex Kozlov (ak) · 0.8.0_10
- Update pkgng patch to 8.0.10 [1]   * Increase pkg_replace -a speed - Add NO_ARCH

PR:	ports/188154 [1]
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer) [1]
dcc6472515
Alex Kozlov (ak) · 0.8.0_9
- Update pkgng patch to 8.0.9   * Improvement of the pkgng detection logic [1]   * Improvement of the speed of "pkg_replace -a" [2]

PR:	ports/187723
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
Requested by:	Michael Gmelin <freebsd@grem.de> [1], Martin Dieringer <martin.dieringer@gmx.de> [2]
9370f6b6a7
Alex Kozlov (ak) · 0.8.0_8
- Preserve the automatic flag when using pkgng

PR:	ports/186406
Submitted by:	KAMADA Ken'ichi <kamada@nanohz.org>
Approved by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
b4553f4e59
Alex Kozlov (ak) · 0.8.0_7
- Add support for binary packages to pkgng patch

PR:	ports/186183
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
9b159afa08
Alex Kozlov (ak) · 0.8.0_6
- Update pkgng patch to 8.0.6   * Fix issue with pkgng when the dependent packages are not installed

PR:	ports/184528
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
12927ebb3e
Danilo Egea Gondolfo (danilo) · 0.8.0_5
- Revert to the original installation schema. With stage, files can be unconditionally installed

Reported by:	ak
2a7a5c4cee
Danilo Egea Gondolfo (danilo) · 0.8.0_5
- Support pkg-1.2 [1] - Fix the unconditional installation of files

PR:		ports/184319
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer) [1]
12d29c7727
Alex Kozlov (ak) · 0.8.0_4
- Fix option '-a' usage [1]

PR:	ports/182784
PR:	ports/182785 [1]
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer) [1], Katsuyoshi Ohara <ohara@air.s.kanazawa-u.ac.jp>
206fccc6b6
Alex Kozlov (ak) · 0.8.0_3
- Fix the build with custom PREFIX and LOCALBASE
e8c0c2fe26
Alex Kozlov (ak) · 0.8.0_3
- Support STAGEDIR [1] - Move pkgng patch outside of ports tree [1] - Fix pattern matching in pkg_glob function [2] - Minor Makefile cleanup

PR:	ports/182388 [1]
PR:	ports/182371 (based on) [2]
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer) [1], Iouri Ivliev <ii@any.com.ru> [2]
17127fff96
Alex Kozlov (ak) · 0.8.0_2
- Fix PKGDB_FIX option - Improvements to pkgng patch

PR:	ports/182268
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp> (maintainer)
8952201db9
Baptiste Daroussin (bapt) · 0.8.0_1
Add NO_STAGE all over the place in preparation for the staging support (cat: ports-mgmt)
16f65335a1
Alex Kozlov (ak) · 0.8.0_1
- Undeprecate, give maintainership to submitter - Add pkgng support

PR:	ports/181077
Submitted by:	Ken DEGUCHI <kdeguchi@sz.tokoha-u.ac.jp>
3873b4b26c
Alex Kozlov (ak) · 0.8.0
Reset maintainer:

ports-mgmt/pkg_replace: maintainer timeout (> 2 years)
games/lordsawar: Return to the pool
89e3f41195
Alex Kozlov (ak) · 0.8.0
- Deprecate: Abandoned upstream, does not support pkgng.

PR: ports/155697 (based on)
Submitted by:	Pavel Gubin <pg@2lazy.ru>
Approved by:	maintainer timeout (>2 years)
Feature safe:	yes
b56392a597
Martin Wilke (miwi) · 0.8.0
- Get Rid MD5 support

With hat:	portmgr (myself)
65e190c0f0
Pav Lucistnik (pav) · 0.8.0
Move pkg_replace to new category ports-mgmt

Repocopied by:	marcus
f81b82b55e
Martin Wilke (miwi) · 0.8.0
- Update to 0.8.0

PR:             108341
Submitted by:   Securedog<securedog@users.sourceforge.jp> (maintainer)
9d4b1deaeb
Alejandro Pulver (alepulver) · 0.7.3
pkg_replace is used to upgrade installed packages. It is compatible with portupgrade and can be used as an alternative to portupgrade and portmaster.

WWW: http://portutil.sourceforge.jp

Securedog <securedog@users.sourceforge.jp>

PR:		ports/104971
Submitted by:	Securedog <securedog at users.sourceforge.jp>
16127d75e5