Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
firstboot-pkg-upgrade Update the system using pkg when it first boots
1.4 sysutils Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.4Version of this port present on the latest quarterly branch.
Maintainer: ziaee@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-05-08 15:36:05
Last Update: 2026-09-11 06:14:11
Commit Hash: e22698b
License: BSD2CLAUSE
Description: #
Run 'pkg upgrade' when the system first boots to check for any software updates, apply them, and request a reboot. Obviously, this port is not useful after a system is already running; it is intended to be included as part of the installation or disk image building process.
cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (3 items)
Collapse this list.
  1. /usr/local/share/licenses/firstboot-pkg-upgrade-1.4/catalog.mk
  2. /usr/local/share/licenses/firstboot-pkg-upgrade-1.4/LICENSE
  3. /usr/local/share/licenses/firstboot-pkg-upgrade-1.4/BSD2CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • firstboot_pkg_upgrade
Dependency lines:
  • firstboot-pkg-upgrade>0:sysutils/firstboot-pkg-upgrade
To install the port: #
cd /usr/ports/sysutils/firstboot-pkg-upgrade/ && make install clean
To add the package, run one of these commands:
  • pkg install sysutils/firstboot-pkg-upgrade
  • pkg install firstboot-pkg-upgrade
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: firstboot-pkg-upgrade
Flavors: there is no flavor information for this port. #
distinfo: #
There is no distinfo for this port.

Packages (timestamps in pop-ups are UTC): #
firstboot-pkg-upgrade
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest1.41.4--1.4
FreeBSD:14:quarterly1.41.4--1.4
FreeBSD:15:latest1.41.4n/a-n/a
FreeBSD:15:quarterly1.41.4n/a-n/a
FreeBSD:16:latest1.41.4n/a-n/a
This port has no dependencies. #
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
sysutils_firstboot-pkg-upgrade
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
  1. There is no master site for this port.

Number of commits found: 5 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.4
11 Sep 2026 06:14:11
commit hash: e22698bc7cf6b0175d0c1612e71be0d49c94dfa5commit hash: e22698bc7cf6b0175d0c1612e71be0d49c94dfa5commit hash: e22698bc7cf6b0175d0c1612e71be0d49c94dfa5commit hash: e22698bc7cf6b0175d0c1612e71be0d49c94dfa5 files touched by this commit
Colin Percival (cperciva) search for other commits by this committer
sysutils/firstboot_pkg_upgrade: Ignore OSVERSION

Don't just ignore OSVERSION for the 'pkg upgrade' command; we also
need to ignore OSVERSION for the 'pkg update' and also for the 'pkg
bootstrap' (if we somehow don't have pkg installed yet).

Rather than setting it individually for each command, export
IGNORE_OSVERSION=YES into the environment where it will apply to
all of the pkg commands.

Reviewed by:	ziaee
Fixes:	b67d354b6656 ("sysutils/firstboot-pkg-upgrade: Ignore OSVERSION")
Sponsored by:	Amazon
Reported by:	akiyano
Differential Revision:	https://reviews.freebsd.org/D59584
1.3
23 Aug 2026 00:22:23
commit hash: b67d354b66561776998a3d4b5d2541c996e6f828commit hash: b67d354b66561776998a3d4b5d2541c996e6f828commit hash: b67d354b66561776998a3d4b5d2541c996e6f828commit hash: b67d354b66561776998a3d4b5d2541c996e6f828 files touched by this commit
Colin Percival (cperciva) search for other commits by this committer
sysutils/firstboot-pkg-upgrade: Ignore OSVERSION

Without IGNORE_OSVERSION=yes, images built from HEAD or stable branches
will hang during boot waiting for the user to agree to install updates
every time OSVERSION gets bumped.

This is a no-op for releases, since OSVERSION never changes there.

Reviewed by:	ziaee
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D59053
1.2
16 May 2026 20:53:01
commit hash: ac4933ff6f18f126fbf9bc72f1ab9451c9355f29commit hash: ac4933ff6f18f126fbf9bc72f1ab9451c9355f29commit hash: ac4933ff6f18f126fbf9bc72f1ab9451c9355f29commit hash: ac4933ff6f18f126fbf9bc72f1ab9451c9355f29 files touched by this commit
Colin Percival (cperciva) search for other commits by this committer
sysutils/firstboot-pkg-upgrade: 1.1 -> 1.2

If a list of repositories has been specified, only run 'pkg update'
on those repositories; in particular, avoiding downloading the entire
FreeBSD-ports repository when we're not going to be using it allows
FreeBSD/EC2 instances (and presumably those other clouds too) to
launch roughly 5 seconds faster.

Reviewed by:	ziaee
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D57033
1.1
09 May 2026 23:59:16
commit hash: 922cd9536954fc7eada1ec90b4ca5837d3990878commit hash: 922cd9536954fc7eada1ec90b4ca5837d3990878commit hash: 922cd9536954fc7eada1ec90b4ca5837d3990878commit hash: 922cd9536954fc7eada1ec90b4ca5837d3990878 files touched by this commit
Colin Percival (cperciva) search for other commits by this committer
sysutils/firstboot-pkg-upgrade: Fix script typo

With hat:	re
1.0
08 May 2026 15:35:12
commit hash: 89d217ad06ead7f1138121ca2aa30099bba23165commit hash: 89d217ad06ead7f1138121ca2aa30099bba23165commit hash: 89d217ad06ead7f1138121ca2aa30099bba23165commit hash: 89d217ad06ead7f1138121ca2aa30099bba23165 files touched by this commit
Alexander Ziaee (ziaee) search for other commits by this committer
sysutils/firstboot-pkg-upgrade: New port

Introduce an rc.d service to upgrade all packages on first boot,
ensuring cloud images are deployed with no known vulnerabilities. By
default, it will patch everything from all enabled repos, and record
this in syslog. It accepts an optional additional line that specifies
a list of space-separated specific repos to limit the upgrade to.

Note specifying bogus repos results in the upgrade aborting,
it will log This and will not try to not run again.

MFH:			2026Q2
Sponsored by:		Amazon
Sponsored by:		Google Cloud
Sponsored by:		OVHcloud
Reviewed by:		bapt, cperciva
Discussed with:		bapt, cperciva, delphij, lwhsu
Differential Revision: https://reviews.freebsd.org/D56381

Number of commits found: 5