FreeBSD Update

Материал из BSD Howto
Перейти к навигации Перейти к поиску

Проверка текущей версии FreeBSD

# freebsd-version -ku
14.2-RELEASE
14.2-RELEASE

Вывод сообщает текущую версию компонентов ОС (ядра и "мира"):

Скачивание бинарных обновлений FreeBSD

# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 14.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 81 patches.....10....20....30....40....50....60....70....80 done.
Applying patches... done.
Fetching 8 files... .... done.
The following files will be removed as part of updating to
14.2-RELEASE-p3:
/etc/ssl/certs/08063a00.0
/etc/ssl/certs/18856ac4.0
/etc/ssl/certs/57bcb2da.0
/etc/ssl/certs/5e98733a.0
/etc/ssl/untrusted/03179a64.0
[пропущен список удаляемых файлов в ходе обновления]
The following files will be added as part of updating to
14.2-RELEASE-p3:
/etc/ssl/certs/616816f6.0
/etc/ssl/certs/6a9bdba3.0
/etc/ssl/certs/878d9bca.0
/etc/ssl/certs/a09a51ae.0
/etc/ssl/certs/b8d25de6.0
[пропущен список добавляемых файлов в ходе обновления]
The following files will be updated as part of updating to
14.2-RELEASE-p3:
/bin/freebsd-version
/boot/kernel/cd9660.ko
/boot/kernel/ext2fs.ko
/boot/kernel/kernel
/boot/kernel/tarfs.ko
[пропущен список заменяемых файлов в ходе обновления]

Установка бинарных обновлений и перезагрузка FreeBSD (при необходимости)

# freebsd-update install
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...
Restarting sshd after upgrade
Performing sanity check on sshd configuration.
Stopping sshd.
Performing sanity check on sshd configuration.
Starting sshd.
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
 done.

Перезагрузка FreeBSD после установки бинарных обновлений:

# reboot

Проверка установленной версии FreeBSD

# freebsd-version -ku
14.2-RELEASE-p1
14.2-RELEASE-p3

На момент того обновления и внесения правок в статью, это была актуальная версия ОС. С 01 октября 2025 года срок поддержки FreeBSD 14.2-RELEASE истекает. И проблемы безопасности, обнаруженные после этой даты, исправляться не будут. Об этом будет получено сообщение при попытке скачивания обновлений безопасности.

# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 14.2-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 14.2-RELEASE-p7.

WARNING: FreeBSD 14.2-RELEASE-p1 HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Wed Oct  1 03:00:00 MSK 2025
will not have been corrected.

Потребуется повышение версии ОС, например, до 14.3-RELEASE.

Обновление FreeBSD с версии 14.2-RELEASE до 14.3-RELEASE

Пример команды повышения младшей версии до 14.3-RELEASE:

# freebsd-update upgrade -r 14.3-RELEASE
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 14.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg world/base world/lib32

The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg

Does this look reasonable (y/n)?

В выводе команды будут предложены компоненты, которые будут или не будут установлены в случае согласия. Последует вывод о скачивании обновляемых компонентов:

Fetching metadata signature for 14.3-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 4477 patches.....10....20....30....
[пропущены номера компонентов в ходе скачивания]
Applying patches... done.
Fetching 230 files... ....10....20....30....
[пропущены номера компонентов в ходе применения изменений]
The following files will be removed as part of updating to
14.3-RELEASE-p5:
/boot/kernel/iwlwifi-3160-17.ucode.ko
/boot/kernel/iwlwifi-3168-29.ucode.ko
/boot/kernel/iwlwifi-7260-17.ucode.ko
/boot/kernel/iwlwifi-7265-17.ucode.ko
/boot/kernel/iwlwifi-7265D-29.ucode.ko
/boot/kernel/iwlwifi-8000C-36.ucode.ko
/boot/kernel/iwlwifi-8265-36.ucode.ko
/boot/kernel/iwlwifi-9000-pu-b0-jf-b0-46.ucode.ko
/boot/kernel/iwlwifi-9260-th-b0-jf-b0-46.ucode.ko
/boot/kernel/iwlwifi-Qu-b0-hr-b0-77.ucode.ko
[пропущен список удаляемых файлов в ходе обновления]