Current Way To Update Sources & Rebuild World/Kernel?
Polytropon
freebsd at edvax.de
Sun Mar 17 22:16:39 UTC 2013
On Sun, 17 Mar 2013 15:07:35 -0700, Drew Tomlinson wrote:
> I've been away for a while. In the past, the proper way to update a
> system was to grab current sources via cvsup and then rebuild world and
> kernel. But now I see cvsup is no longer supported.
Correct. The new way to obtain sources is via Subversion.
The OS will hopefully soon get a csup equivalent (svnup)
so you don't need to install a port with heavy dependencies.
> The handbook talks
> about freebsd-update. I do not want binary upgrades but is this the
> tool to replace cvsup to update sources?
Basically freebsd-update updates the system binarily, as you
said. But it can also be used to only update sources. In order
to do this, edit /etc/freebsd-update.conf to contain the line
"Components src" (means: you remove all the other components
such as "world" and "kernel"). Then you proceed to reinstall
from source as known.
> How do I use it to replace the
> old way that went something like this:
>
> cvsup sources
> make buildworld
> make buildkernel
> make installkernel
> mergemaster
> make installworld
>
> (I'm not sure I have that in the exact proper order but it was something
> like that).
The exact proper order can be found in the comment header of
/usr/src/Makefile. You should stick to that order to avoid
problems. Also see the corresponding handbook section.
> So is freebsd-update what I need?
As explained above - or make yourself familiar with SVN, which
is the CVSup / csup replacement.
> Is there a page that describes the
> steps to accomplish this?
See "man freebsd-update" and the comments in /etc/freebsd-update.conf
for details. Also see the Handbook's section about updating.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list