Solved FreeBSD 12.0 freebsd-update problem


Aspiring Daemon

Reaction score: 12
Messages: 518

Greetings all,

it seems that I have a problem:
root@box: freebsd-update fetch
Looking up mirrors... 3 mirrors found.
Fetching metadata signature for 12.0-RELEASE from done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
And then nothing happens.
root@box: ps
14544 v2 I= 0:00.12 /bin/sh /usr/sbin/freebsd-update fetch
Any help would be appreciated.

Kindest regards,



Well-Known Member

Reaction score: 124
Messages: 285

Try entering the command :q when you see the (END) prompt and it should display something like:
No updates needed to update system to 12.0-RELEASE-p3.
... or, if you actually do need an update, it will display something like this:
The following files will be added as part of updating to 12.0-RELEASE-p3:

The following files will be updated as part of updating to 12.0-RELEASE-p3:
... <snip> ...
... and, if it does display something like the second example, indicating that an update is available, then you should next enter the command freebsd-update install.

The (END) prompt you see happens because the output of freebsd-update fetch is being redirected through the less command. This is presumably being done by the freebsd-update programmer for the benefit of people who use text-only terminals, which don't have a scrollback feature, to prevent the top part of the output from being scrolled off the screen before they have a chance to read it. If you'd like to avoid the (END) prompt altogether, try piping your output through the tee program, for example:
freebsd-update fetch | tee someunusedfilename
... or even ...
freebsd-update fetch | tee /dev/null
... although personally I prefer to use descriptive filenames for the tee output and save them for awhile in my /root directory for later reference.