You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.2 KiB

title date description summary tags showReadingTime showWordCount showPagination showBreadcrumbs feed_exclude draft
FreeBSD 2024-08-31T08:35:46+02:00
freebsd
git
false false false true true true

Tracking FreeBSD STABLE

A quick checklist. Read along on the FreeBSD website for further information.

As for my understanding only source updates are possible on the STABLE branch, but I still use pkg to install pre-compiled packages -- I will find out if that breaks things.

  1. Update sources

    $ doas git -C /usr/src pull
    
  2. Check /usr/src/UPDATING

  3. Go to /usr/src

    $ cd /usr/src
    
  4. Compile world

    $ doas make -j8 buildworld
    
  5. Compile and install kernel

    $ doas make -j8 kernel
    

    This is equivalent to make -j8 buildkernel installkernel.

  6. Reboot

    $ shutdown -r now
    
  7. Update config files

    $ doas etcupdate -p
    

    -p short explained:

    Enable “pre-world” mode. Only merge changes to files that are necessary to successfully run make installworld or make installkernel.

  8. Again, go to /usr/src

    $ cd /usr/src
    
  9. Install world

    $ doas make installworld
    
  10. Update config files (after world installation)

    $ doas etcupdate -B
    

    -B explained:

    Do not build generated files in a private object tree. Instead, reuse the generated files from a previously built object tree that matches the source tree. This can be useful to avoid gratuitous conflicts in sendmail(8) configuration files when bootstrapping. It can also be useful for building a tarball that matches a specific world build.

  11. Another one, reboot

    $ shutdown -r now
    

System is up to date, following the branch stable/14 (for now).