Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2011 15:52:37 +0100
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Zantgo <zantgo@gmail.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: -Stable periodic updates
Message-ID:  <CADGWnjXXG=vrwQ3aVNvyN2b6n6OwOUD-%2BL3oth5ERf4HfcUZXA@mail.gmail.com>
In-Reply-To: <BD35A26D-423B-46C6-8720-EC0192B0496C@gmail.com>
References:  <C87DEE19-615F-4FD0-8091-E8A143DB2970@gmail.com> <20111105012317.065c6b6f@cox.net> <op.v4gyj6t3halquq@michael-think> <20111105062341.03b20d37@cox.net> <BD35A26D-423B-46C6-8720-EC0192B0496C@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 5, 2011 at 3:36 PM, Zantgo <zantgo@gmail.com> wrote:
> I will say my question clear.
> If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is update the current, as for example 2011/11/01. I am willing to read me a manual that tells me how to do this._______________________________________________

Short answer:

1. Update /usr/src with csup using an appropriate supfile. e.g.:

---------- /etc/8stable-sup ----------------------------
*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default delete use-rel-suffix

*default compress

src-all
----------- /etc/8stable-sup ----------------------------

# csup -g -L2 /etc/8stable-sup

2. Compile /usr/src into /usr/obj:

# cd /usr/src
# make buildworld && make buildkernel KERNCONF=GENERIC

3. Install /usr/obj as the base system:

# make installkernel KERNCONF=GENERIC
# reboot (single user)

(You do this to verify that the new kernel is booting correctly)

(single-user)# mount -a
(single-user)# cd /usr/src
(single-user)# mergemaster -p
(single-user)# make installworld
(single-user)# mergemaster

(single-user)# make delete-old
[optional, but beware!] (single-user)# make delete-old-libs

(single-user)# reboot

4. Now update the ports tree /usr/ports

-------------- /etc/ports-sup -------------------------------
*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

*default compress

ports-all
--------------- /etc/ports-sup -------------------------------

# csup -g -L2 /etc/ports-sup

5. Update the installed ports on your system, by rebuilding
all ports that are not up-to-date:

# cd /usr/ports
# less UPDATING
    (Read from the entry of the last time you've updated the ports)

(get a new portmaster just in case)
# portmaster -b ports-mgmt/portmaster

(now, rebuild all that is not up-to-date)
# portmaster -a

Or, if you prefer:

# pkg_version -v '<' > /root/pkg-update-list.txt
# less /root/pkg-update-list
# portmaster -b (one-port-after-the-other-from-the-list-above)

(To get portmaster, install /usr/ports/ports-mgmt/portmaster)

Good luck,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGWnjXXG=vrwQ3aVNvyN2b6n6OwOUD-%2BL3oth5ERf4HfcUZXA>