freebsd-update log file

When we perform the freebsd update by `freebsd-update fetch install`, a list of changed files is shown. We could review the list and press 'q' to quit. Where can we view the list afterwards? I have checked the /etc/freebsd-update.conf config file and /var/log directory, and did not find anything related.
Code:
The following files will be updated as part of updating to14.1-RELEASE-p6:
/bin/freebsd-version
/boot/kernel/ctl.ko/rescue/[
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
...
 
Not exactly what you are after, but maybe something here?
Code:
ls -lot /var/db/freebsd-update/
On my test (13.4) machine, the newest install.xxxx file is this one: install.1xioiH, and if I do this
Code:
cat /var/db/freebsd-update/install.1xioiH/INDEX-NEW
then the output gives me a good indication of the changed files:
Code:
/bin/freebsd-version|f|0|0|0555|0|68355e9ea7d1f2fdcb96b144b09dbc1ce97f5f496bf2cb21be9908d921ad3d9c|
/boot/kernel/ctl.ko|f|0|0|0444|0|791ec50d38ed799ae9127dc6cb129988bdeb9e02501b7dec909938ece7b9eb7e|
/rescue/[|f|0|0|0555|0|9de795838553efca3b049b4018a4717e7ab9ff52932330de7e3dff40c37ffb6f|
/rescue/bectl|f|0|0|0555|0|9de795838553efca3b049b4018a4717e7ab9ff52932330de7e3dff40c37ffb6f|/rescue/[
...
/usr/src/usr.sbin/bhyve/pci_nvme.c|f|0|0|0644|0|806c5dcc2924e5ed14f4d79b8bcf2e16c9744dc910892318b3e08ea7cd3c9a9e|
/usr/src/usr.sbin/bhyve/virtio.c|f|0|0|0644|0|f9e83cdec4d810fc1a48a2e7327b0fdc0cebab84c1533ee9e3bf421b8d99d74c|
Might be a nicer log somewhere else.
 
These lists are displayed and then deleted.
freebsd-update.sh?h=releng/14.1#n2089
freebsd-update.sh?h=releng/14.1#n2098
freebsd-update.sh?h=releng/14.1#n2107

It can be displayed as follows.
Code:
cut -f 1 -d '|' < INDEX-OLD | sort > /tmp/INDEX-OLD.flist
cut -f 1 -d '|' < INDEX-NEW | sort > /tmp/INDEX-NEW.flist
cd /tmp
echo 'The following files will be removed as part of updating'
comm -23 INDEX-OLD.flist INDEX-NEW.flist
echo 'The following files will be added as part of updating'
comm -13 INDEX-OLD.flist INDEX-NEW.flist
echo 'The following files will be updated as part of updating'
comm -12 INDEX-OLD.flist INDEX-NEW.flist
 
So the log feature is missing. We might need update the script to log it to /var/log/freebsd-update.log.
 
Back
Top