Difference between revisions of "Binary upgrade NetBSD"

From ezUnix
Jump to: navigation, search
(Created page with "{{PDF}} =Introduction= To upgrade the NetBSD from one version to another (greater), grab the archives (sets) from the nearest mirror. <br>By default, check ftp://ftp.netbs...")
 
 
Line 10: Line 10:
 
= New kernel =
 
= New kernel =
  
After you downloaded a new kernel image, extract it to the root directory and reboot your computer:
+
After you downloaded a new kernel image and the modules set, extract them to the / directory and reboot your computer:
  
 
  # tar xzpvf kern-GENERIC.tgz -C /
 
  # tar xzpvf kern-GENERIC.tgz -C /
 +
# cd /
 +
# tar -zxpf ~/modules.tgz
 
  # reboot
 
  # reboot
 
  
 
= Userland =
 
= Userland =
Line 20: Line 21:
 
If everything went well, you can proceed to upgrading the userland:
 
If everything went well, you can proceed to upgrading the userland:
  
  # for i in base comp games man misc text x*; do tar xzpvf $i.tgz -C ; done
+
  # cd /
  # mkdir /tmp/tmproot
+
# tar -zxpf ~/base.tgz
  # tar xzpvf etc.tgz -C /tmp/tmproot
+
  # tar -zxpf ~/comp.tgz
  # postinstall -s /tmp/tmproot check
+
  # ...
  # (.. run the command postinstall gave you ..)
+
  # etcupdate -s /tmp/tmproot
+
 
  # reboot
+
= Update /etc =
 +
 
 +
postinstall(8) will first check and fix most things that can be automated, and etcupdate(8) in the second step will ask on what to merge:
 +
 +
  # /usr/sbin/postinstall -s ~/etc.tgz check
 +
  # /usr/sbin/postinstall -s ~/etc.tgz fix
 +
  # /usr/sbin/etcupdate -s ~/etc.tgz
 +
  # shutdown -r now
 +
 
  
 
You should now have an upgraded (and still working system).  
 
You should now have an upgraded (and still working system).  

Latest revision as of 15:22, 30 October 2012

                                    pdf_icon.png Download this article as a single PDF document 


Introduction

To upgrade the NetBSD from one version to another (greater), grab the archives (sets) from the nearest mirror.
By default, check ftp://ftp.netbsd.org/pub/NetBSD/


New kernel

After you downloaded a new kernel image and the modules set, extract them to the / directory and reboot your computer:

# tar xzpvf kern-GENERIC.tgz -C /
# cd /
# tar -zxpf ~/modules.tgz
# reboot

Userland

If everything went well, you can proceed to upgrading the userland:

# cd /
# tar -zxpf ~/base.tgz
# tar -zxpf ~/comp.tgz
# ...

Update /etc

postinstall(8) will first check and fix most things that can be automated, and etcupdate(8) in the second step will ask on what to merge:

# /usr/sbin/postinstall -s ~/etc.tgz check
# /usr/sbin/postinstall -s ~/etc.tgz fix
# /usr/sbin/etcupdate -s ~/etc.tgz
# shutdown -r now


You should now have an upgraded (and still working system).

You can proceed to the packages upgrade (using pkg_add -uu or pkg_chk).



That's all folks.
Marcin


<comments />
Talk:Binary upgrade NetBSD