Date: Thu, 29 Sep 2011 09:35:34 -0700 From: Freddie Cash <fjwcash@gmail.com> To: Denny Schierz <linuxmail@4lin.net> Cc: freebsd-stable@freebsd.org Subject: Re: How to update like Debian Message-ID: <CAOjFWZ61V%2BTDO6hBmWgf1k70jfRUpB2uG6RbVAGFm=Ojuszohw@mail.gmail.com> In-Reply-To: <B065E53C-A5B4-4A2A-A9AD-C6498933B475@4lin.net> References: <B065E53C-A5B4-4A2A-A9AD-C6498933B475@4lin.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 29, 2011 at 9:02 AM, Denny Schierz <linuxmail@4lin.net> wrote: > I think, I do not understand, how to update (security/bugfixes) my 8.2 > machines :-) I searched a lot and tried, what I have found in the docs, but > I had trouble ... > > What I have done (one thing was working, but didn't know, if it is > correct): > > Updating FreeBSD is done is two separate processes, which can be done independently of one another. There is a clear separation between "the base FreeBSD OS" and "third-party apps installed on top". This is something that is missing in the land of the penguin, and tends to trip people up as they switch between FreeBSD and Linux (in either direction). To do a binary upgrade of the base OS, you use freebsd-update: # freebsd-update fetch # freebsd-update update See the freebsd-update man page for more details and options. That updates only the base OS (stuff under / and /usr; it does not touch anything under /usr/local). There are several different ways to update your installed third-party software (stuff installed via either pkg_add or the ports tree), depending on whether or not you want to compile software. Since you want have a Debian-like experience, then you want to install via binary packages as much as possible. See the man page for pkg_add for information on doing the initial install of software, including remotely fetching software (this would be similar to "apt-get install" without any upgrade support). A nice tool for handling upgrades of binary packages, using only binary packages, is pkg_upgrade. This is part of the bsdadminscripts package, so you'll need to install that first. Using pkg_add and pkg_upgrade, you do not even need to install the ports tree (and can even "rm -rf /usr/ports/*"). That's about as close to a Debian-like experience as you'll get. -- Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ61V%2BTDO6hBmWgf1k70jfRUpB2uG6RbVAGFm=Ojuszohw>