Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2011 13:10:02 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: How to update like Debian
Message-ID:  <CAMXt9Na=a2BQnfo6dBhtLFi93V8fRCEKV8N3VPkAbVZeBopQ8Q@mail.gmail.com>
In-Reply-To: <CAOjFWZ61V%2BTDO6hBmWgf1k70jfRUpB2uG6RbVAGFm=Ojuszohw@mail.gmail.com>
References:  <B065E53C-A5B4-4A2A-A9AD-C6498933B475@4lin.net> <CAOjFWZ61V%2BTDO6hBmWgf1k70jfRUpB2uG6RbVAGFm=Ojuszohw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 29, 2011 at 12:35 PM, Freddie Cash <fjwcash@gmail.com> wrote:
> 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-part=
y
> apps installed on top". =C2=A0This is something that is missing in the la=
nd of
> the penguin, and tends to trip people up as they switch between FreeBSD a=
nd
> Linux (in either direction).
>
> To do a binary upgrade of the base OS, you use freebsd-update:
> =C2=A0# freebsd-update fetch
> =C2=A0# 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), dependin=
g
> on whether or not you want to compile software. =C2=A0Since you want have=
 a
> Debian-like experience, then you want to install via binary packages as m=
uch
> 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).
>
Two other options to keep ports up to date are portupgrade in
ports-mgmt/portupgrade
and portmaster in ports-mgmt/portmaster .
To see some real world example of using it check the man page for each and
take a look at /usr/ports/UPDATING you will see some example of how to
upgrade major port changes

Check out the entry from 20110517 about upgrading to perl 5.14 and
removing the older version and fixing all the depends.

In the debian world there is no exact comparison for this , major
changes like this could/would be done by the maintainers and pushed
out as debs with some warnings.

portmaster and portupgrade both do the same relative tasks, the best
advice would be to try both and see which you like. Also stick to
using one port management tool . If you want to manually upgrade try
to do that, if you want a wrapper like portupgrade use portinstall /
portupgrade . Mixing and matching ports management tools for me imho a
bad idea for beginners.

> A nice tool for handling upgrades of binary packages, using only binary
> packages, is pkg_upgrade. =C2=A0This is part of the bsdadminscripts packa=
ge, so
> you'll need to install that first. =C2=A0Using pkg_add and pkg_upgrade, y=
ou 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
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>



--=20
mark saad | nonesuch@longcount.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMXt9Na=a2BQnfo6dBhtLFi93V8fRCEKV8N3VPkAbVZeBopQ8Q>