Premium Shogun 4604 Posted May 2, 2014 Premium Share Posted May 2, 2014 Hi guys, Today I will show you how to keep your server up to date with the latest patches or upgrade to a new version. For this purpose, there exists a simple command line tool called freebsd-update. Although many people consider updating their operating system a nuisance, you should be aware that there are vulnerabilities being published constantly for whichever Operating System you use, so update it with all the critical updates, be it your server or your PC at home. Okay, now into the tutorial itself. First we will take a look at which are the currently supported releases of FreeBSD: Production (Legacy) Release: Legacy release is 8.4 (launched in June 2013) - this means this is the oldest version supported at the moment. Older versions do not get updates or security patches so it's a good idea to keep your FreeBSD installation at this minimum version. Production Release: The production release 9.3 (launched July 2014) is the recommended one as it's the release that the main development work is taking place on. Upcoming Release: Release 10.1 (November 2014) is still quite experimental and introduces some important changes. Installing the critical updates for your current version of FreeBSD This action is, in theory, similar to running Windows Update in the Microsoft OS, or "yum update" in a RedHat/CentOs machine: freebsd-update fetch install Will download and install all the system and kernel updates for your current version of FreeBSD (Just press page down when you get a list of the installed files - pointing this out as some may get stuck at this point) Upgrading to a newer version of FreeBSD Upgrading to a newer release of FreeBSD, which we suppose should be better, is a bit more adventurous: freebsd-update upgrade -r [release name] Where [release name] is the name of the release you want to upgrade to. This is composed by the version number and the branch name (CURRENT, RELEASE or STABLE). I recommend choosing the RELEASE branch, so for example, if we wanted to upgrade our 8.1 installation to 8.4 we would use: freebsd-update upgrade -r 8.4-RELEASE Note a reboot will be required at the end to boot into the new kernel (and you may be instructed to run commands after the reboot as well). Pay attention to instructions on screen! Three situations where beginners often get stuck here A survival guide for FreeBSD upgrades When asked if everything looks reasonable, pray and say yes If a configuration file is displayed, you are in the vi editor (unless you changed your default editor, but then you probably don't need this guide). vi is an abomination of nature, so we will exit from it with :q! If you are shown a long list of files, you are in the less text viewer, and you can exit and continue pressing these keys in order: '$ When you are asked to rebuild your ports, you can use pkg upgrade to just upgrade the binaries. Although I must confess I have no idea if this actually has the same effect, I haven't had any problems so far. If you really want to rebuild all ports you can do it this way: portsnap fetch update cd /usr/ports/ports-mgmt/portupgrade make install clean portupgrade -Raf 9 Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted May 31, 2014 Former Staff Share Posted May 31, 2014 (edited) Edited August 22, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Night 367 Posted May 31, 2014 Share Posted May 31, 2014 (edited) you must be connected to the net you cant do it using hamchi interface and dont update directly from 8.2 to 9.2 and i recommend 9.2 cz 10.0 is not-stable and for developpers Edited August 22, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted May 31, 2014 Former Staff Share Posted May 31, 2014 (edited) Edited August 22, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Night 367 Posted May 31, 2014 Share Posted May 31, 2014 (edited) this one and try Edited August 22, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted June 1, 2014 Former Staff Share Posted June 1, 2014 i'v tried but same thing i'm thinking of geting onther server file and put my backup on it Link to comment Share on other sites More sharing options...
Night 367 Posted June 1, 2014 Share Posted June 1, 2014 you should take a look at this here Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted June 1, 2014 Former Staff Share Posted June 1, 2014 kk i'll try Link to comment Share on other sites More sharing options...
M.Sorin 284 Posted July 1, 2014 Share Posted July 1, 2014 i'v tried but same thing i'm thinking of geting onther server file and put my backup on it Use DHCP if your router suport it. Link to comment Share on other sites More sharing options...
Active Member ATAG 311 Posted July 1, 2014 Active Member Share Posted July 1, 2014 $ uptime 10:53AM up 408 days, 17:56, 2 users, load averages: 0.26, 0.28, 0.29 If the system is stable and U don't use services that have known security issues, you don't need to upgrade recently. I use portmaster to keep my apps/services up to date. 1 Link to comment Share on other sites More sharing options...
Premium Shogun 4604 Posted January 7, 2015 Author Premium Share Posted January 7, 2015 Updated post. Link to comment Share on other sites More sharing options...
M4str0 1 Posted December 16, 2015 Share Posted December 16, 2015 @Shogun I followed the lead but after I enter y (freebsd-update upgrade -r 9.3-RELEASE) gives me the following error: The update metadata is correctly signed, but failed an integrity check. Cowardly Refusing to proceed any further. how do I fix? Link to comment Share on other sites More sharing options...
Recommended Posts