One thing I noticed about PC-BSD, is it has a PBI system, like Windows' update system for cleanly adding and removing applications, and another for keeping the system and applications up to date automatically. It also tells you when there are operating system updates needed, and you just need to answer yes to do them. I don’t see this in FreeBSD. I maintain (poorly) some FreeBSD monitoring computers and web servers. I'm hoping there is an easier way in FreeBSD 9.x or 10.x
This is my current update lunacy:
I’ve never used freebsd-update, but it appears to be a way to keep only the OS up to date. However, I don’t know what they mean by operating system. For Windows, it means everything that can be installed with Windows. I've never done an in-place major release upgrade, but it looked like it would be about as easy to just reinstall on a new VM, install the applications, and bring the data across.
I don’t know if there is an easier or better way to keep FreeBSD servers up to date, but what I have going is not very practical, and compiling for hours doesn't make sense. Is there an better way with 9.x or 10.x?
Thank your for your valuable advice!
This is my current update lunacy:
- Set a VMware snapshot.
portsnap fetch updateportsdb –u(-U first time)pkgdb -Fto fix duplicated origins and read on-line forums about the errors, how to fix them, and try to guess which one to keep. If that doesn’t work, roll back to the snapshot.- Edit /usr/local/etc/pkgtools.conf and put DA stuff in HOLD_PKGS
Code:HOLD_PKGS = [ 'exim-4.69-1', 'ncftp1-1.9.5', 'proftpd-1.3.2', 'vm-pop3d-1.1.7f', 'x11*/XFree86*' ] - Make sure /etc/make.conf and add:
Code:WITHOUT_X11=yes portversion -vL=shows what needs updating.portupgrade –arRand spend an entire day answering hundreds of questions that nobody knows the answer to, or what it will pull in based on your choices. Stay away from fonts or it will pull in X11 stuff anyway. If it starts to drag in everything but the kitchen sink, shut down the VM and return to the VMware snapshot, and start over with different choices.
I’ve never used freebsd-update, but it appears to be a way to keep only the OS up to date. However, I don’t know what they mean by operating system. For Windows, it means everything that can be installed with Windows. I've never done an in-place major release upgrade, but it looked like it would be about as easy to just reinstall on a new VM, install the applications, and bring the data across.
I don’t know if there is an easier or better way to keep FreeBSD servers up to date, but what I have going is not very practical, and compiling for hours doesn't make sense. Is there an better way with 9.x or 10.x?
Thank your for your valuable advice!