How To Find Out FreeBSD Version and Patch Level Number

last updated in Categories , , ,

How do I find out my FreeBSD server version and patch level of the installed system using command line option?

You can use any one of the following command to display the FreeBSD operating system version and patch level:

a) freebsd-version command – Show the version and patch level of the installed system

b) uname command – Show information about the system

Say hello to freebsd-version command

The freebsd-version command appeared in FreeBSD version 10.0. To see the version and patch level of the installed kernel:
freebsd-version -k
To see the version and patch level of the installed userland:
freebsd-version -u
Sample outputs:

Fig.01: freebsd-version and other commands in action
Fig.01: freebsd-version and other commands in action

You can see a system being repaired using a live CD:
mount -rt ufs /dev/ada0p2 /mnt
env ROOT=/mnt /mnt/bin/freebsd-version -ku

You can also use the following command to find out if FreeBSD kernel is running in 32bit or 64bit mode:
# getconf LONG_BIT
Sample outputs:

64

Old good uname command

Type the following command (it works on all versions of FreeBSD):
umame -a
uname -mrs

Outputs:

FreeBSD 10.1-RELEASE-p10 amd64

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 3 comments/add one below):

3 comment

  1. Sometimes I search and don’t see much on the web; then I come across a site like this. You are a great asset to the IT community, Vivek Gite. Thanks!

  2. There are typos in the commands..

    freebsd-verion -k => freebsd-version -k

    freebsd-verion -u => freebsd-version -u

    Have a question? Post it on our forum!