It is estimated that the localroot0day issued by fbsd a few days ago should have been published with a patch, and there is no time to verify it. if you need it, refer to the following operations. the advantage of freebsd-update is that it also brings back the rollback function, this is quite good. Reprinted. Freebsd-update-fetchandinstallbinaryupdatestoFree
It is estimated that the localroot 0day issued by fbsd a few days ago should have been published with a patch, and there is no time to verify it. if you need it, refer to the following operations. the advantage of freebsd-update is that it also brings back the rollback function, this is quite good. Reprinted.
Freebsd-update-fetch and install binary updates to FreeBSD
Description:
Freebsd-update is a tool used by FreeBSD to capture, install, and obtain binary update. Note that these updates are only available in versions maintained by FreeBSD Release Engineering Team.
For example, FreeBSD 6.1-RELEASE or FreeBSD 6.2-RC1 instead of FreeBSD 6.2-STABLE
Or FreeBSD 7.0-CURRENT or another version.
Supplement: this command is available only after FreeBSD 6.2-RELEASE version.
Syntax:
Freebsd-update [-B basedir] [-d workdir] [-f conffile] [-k KEY]
[-R newrelease] [-s server] [-t address] command
Parameters:
-B basedir: specify the most basic path for system mounting (default :/)
-D workdir temporary data folder (default:/var/db/freebsd-update /),
-F conffile sets the file location (default:/etc/freebsd-update.conf)
-KEY-trusted rsa key location (default: read from the profile)
-R newrelease defines the new version upgrade standard (for upgrade)
-S server defines the server for retrieving and updating files (default: read from the configuration file)
-T address: email output object (default: root)
Command:
Fetch retrieves possible binary updates based on the existing installed environment and set parameters.
Cron random rest (sleep) 1 ~ 3600 seconds, and then download the update file.
If the download of the updated file is complete, the system will send an email to notify the root user.
(Mail can be delivered to other personnel through the-t parameter or configuration file ).
Like the name of this command (cron), it is used to design and execute through the cron program.
The random interval of seconds is used to prevent a large number of machines from requesting updates to the server at the same time.
Upgrade intercepts the files necessary to upgrade to the new version of RELEASE. please use it with caution.
Confirm that you have read the new version of announcement and release notes.
Install the latest update/upgrade files.
Rollback is used to install the latest update ).
Tips:
Put freebsd-update into cron for execution, so that it can be automatically updated.
0 3 ***/usr/sbin/freebsd-update cron
Related Files/data folders:
/Etc/freebsd-update.conf preset freebsd-update program setting file
/Var/db/freebsd-update/preset freebsd-update: temporary storage and download folder
Actual operation:
In this example, update from 6.3-RELEASE ).
Freebsd-update-r 6.3-RELEASE fetch
Installation:
Freebsd-update-r 6.3-RELEASE install
After the reboot, the execution of uname-a name will become 6.3-RELEASE-p1, if you do not care about the name, do not need to re-boot.