Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

upgrading-dragonfly-the-easy-way

Getting the source (base system and pkgsrc)

<note warning> by default, you will be in the master branch, where all the dev happens, I am not responsible for anything that might happen! This could be unstable and untested code.</note>

box# cd /usr
box# make git-clone
[...]
box# make pkgsrc-checkout
[...]

Building and installing the Kernel and base system userland

Now we will have to build all those sources and install the resulting binaries.

box# cd src
box make buildworld
[...]
box# make buildkernel
[...]
box# make installkernel
[...]
box# make installworld
[...]
box# make upgrade
box# reboot

Installing some useful packages

Now that we have a shiny bleeding edge basesystem, we can install some basic packages from pkgsrc.

box# cd /usr/pkgsrc
box# cd pkgtools/pkg_rolling-release # used to later upgrade packages
box# bmake install clean
box# cd ../../
box# cd $category/$package_you_need

<note> A few months later</note>

Updating the sources and pkgsrc

box# cd /usr
box# make git-pull
box# make pkgsrc-update

Now you can revert to the base system build steps explained earlier.

After a reboot you can upgrade the pkgsrc. For some reason, there is a little hack to get the bootstrap-mk-files and bmake (NetBSD's make) upgraded:

box# cd /usr/pkgsrc/pkgtools/bootstrap-mk-files
box# bmake USE_DESTDIR=full package
box# pkg_add -uu /usr/pkgsrc/packages/All/bootstrap-mk-files-$VERSION.tgz
box# cd ../../devel/bmake
box# bmake USE_DESTDIR=full package
box# pkg_add -uu /usr/pkgsrc/packages/All/bmake-$VERSION.tgz

Now that you have the latest build tools, you can upgrade the rest of the packages. The is a lot of ways to do it, but it choosed this one:

box# pkg_rolling-replace -u

And that's it. Hope it will work for you.

Discussion

Enter your comment (wiki syntax is allowed):
BMWTB
bluerg/20090427_upgrading-dragonfly-the-easy-way.txt · Last modified: 2011/02/01 11:59 (external edit)
Trace: pics blog about pensees twisla 20090619_journey_in_rpm_packaging 20090820_following_netbsd_5.0_stable 20090427_upgrading-dragonfly-the-easy-way
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0