| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

NetBSD update src manually HOW-TO

Page history last edited by trunasuci 13 years, 9 months ago

 

 

Most of us is using BSD and some of them is using NetBSD. Here i share with u guide how to update the sources of your system/box to latest patch

 

u must have:

 

1- Working NetBSD box, mine is 5.0.2

2- Networked

3- Internet of course

4- Know about cvs, how to update the existing src, know about branch tag etc anyway u can refer to my page: Using CVSUP or CSUP to update ports in FreeBSD

 

Firstly i prefer for u to download all the sources tar.gz required from this link via ftp:

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5-0/tar_files/src/

 

anyway i can use cvsup to checkout/fetch the sources and updates it on the same time, but it'll take one hell of a long time!!! so by downloading the tar.gz files, uncompress it, and later updates to the latest patch, it saves lots of time. Besides that, i also can save this tarballs for future use. Let's begin..

 

ftp> ls *.tar.gz
227 Entering Passive Mode (204,152,190,15,214,68)
150 Opening ASCII mode data connection for '/bin/ls'.
-rw-rw-r--  1 600  netbsd    883739 Jul 24 05:20 bin.tar.gz
-rw-rw-r--  1 600  netbsd    742306 Jul 24 05:21 common.tar.gz
-rw-rw-r--  1 600  netbsd     27576 Jul 24 05:21 compat.tar.gz
-rw-rw-r--  1 600  netbsd     73751 Jul 24 05:26 config.tar.gz
-rw-rw-r--  1 600  netbsd   8557472 Jul 24 05:21 crypto.tar.gz
-rw-rw-r--  1 600  netbsd  17530915 Jul 24 05:21 dist.tar.gz
-rw-rw-r--  1 600  netbsd   7387701 Jul 24 05:21 distrib.tar.gz
-rw-rw-r--  1 600  netbsd    344705 Jul 24 05:21 doc.tar.gz
-rw-rw-r--  1 600  netbsd    382192 Jul 24 05:22 etc.tar.gz
-rw-rw-r--  1 600  netbsd  10406840 Jul 24 05:22 external.tar.gz
-rw-rw-r--  1 600  netbsd   2666675 Jul 24 05:22 games.tar.gz
-rw-rw-r--  1 600  netbsd  86285159 Jul 24 05:25 gnu.tar.gz
-rw-rw-r--  1 600  netbsd    141138 Jul 24 05:25 include.tar.gz
-rw-rw-r--  1 600  netbsd   3938116 Jul 24 05:25 lib.tar.gz
-rw-rw-r--  1 600  netbsd    632702 Jul 24 05:25 libexec.tar.gz
-rw-rw-r--  1 600  netbsd    453753 Jul 24 05:25 regress.tar.gz
-rw-rw-r--  1 600  netbsd      2645 Jul 24 05:25 rescue.tar.gz
-rw-rw-r--  1 600  netbsd   1109757 Jul 24 05:25 sbin.tar.gz
-rw-rw-r--  1 600  netbsd   7250969 Jul 24 05:25 share.tar.gz
-rw-rw-r--  1 600  netbsd  36502694 Jul 24 05:26 sys.tar.gz
-rw-rw-r--  1 600  netbsd     48755 Jul 24 05:26 tests.tar.gz
-rw-rw-r--  1 600  netbsd    162510 Jul 24 05:26 tools.tar.gz
-rw-rw-r--  1 600  netbsd     34247 Jul 24 05:20 top-level.tar.gz
-rw-rw-r--  1 600  netbsd   3156828 Jul 24 05:26 usr.bin.tar.gz
-rw-rw-r--  1 600  netbsd   2357638 Jul 24 05:26 usr.sbin.tar.gz
-rw-rw-r--  1 600  netbsd    211907 Jul 24 05:26 x11.tar.gz
226 Transfer complete.

 

 

after finish download all tar.gz files, extract it to /usr folder. Fos csh shell user, u can use this techniques:

 

 

$ foreach file (*.tar.gz)
?   tar -xzf $file -C /usr
? end

 

 

then after all files is already extracted to /usr, u now can update it tp the latest cvs update. Mine is using cvsup and branch tag netbsd-5-0.Anyone who like to updates to -STABLE branch, u can use netbsd-5 tag  

 

# cvsup -g -L 2 ./supfile-cvsup.jp.netbsd.org -p 4500
Parsing supfile "./supfile-cvsup.jp.netbsd.org"
Connecting to localhost
Connected to localhost
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection netbsd-src/cvs
Shutting down connection to server
Finished successfully

 

So now your sources is current and updated, u now can proceed to compile and install it. The guide for do this u can refer to:

http://www.netbsd.org/docs/updating.html

 

just u need to skip the download and update parts, because we already done it. And just start from 

Building the tools

section until finish

 

thats all folks!!!

 

 

27 July 2010 6:08am

 

 

 

 

 

 

 

Comments (0)

You don't have permission to comment on this page.