-Stable periodic updates
C. P. Ghost
cpghost at cordula.ws
Sat Nov 5 14:52:39 UTC 2011
On Sat, Nov 5, 2011 at 3:36 PM, Zantgo <zantgo at 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/
More information about the freebsd-questions
mailing list