Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2008 10:15:41 +0400 (GST)
From:      Rakhesh Sasidharan <rakhesh@rakhesh.com>
To:        Nerius Landys <nlandys@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to restore /usr/src
Message-ID:  <20080122101013.N7173@dogmatix.home.rakhesh.com>
In-Reply-To: <560f92640801212132q14eb068eg993fe73bf0d4755b@mail.gmail.com>
References:  <365643.31120.qm@web56811.mail.re3.yahoo.com> <560f92640801212132q14eb068eg993fe73bf0d4755b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nerius Landys wrote:

>> how can i reinstall the original /usr/src

If you have the install CD, you can even extract the sources from 
there.

I don't recollect the exact location (am in office, don't have a CD with 
me) but its in a directory named "src" and has many files in it. These 
files are split archives of the original /usr/src tree. There's also a 
shell script called ''install.sh'' which can be run to combine all these 
files and extract to a specific location.

By default the extracted to location is $DESTDIR/usr/src. Since you want 
to install to /usr/src, set $DESTDIR to /.

So in effect, the following commands should extract the sources to 
/usr/src for you. (I assume you've inserted the FreeBSD and its mounted at 
some path).

# cd /path/on/cd/where/sources/are
# DESTDIR=/ ./install.sh all

Hope that helps.



 				- Rakhesh
                                 http://rakhesh.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080122101013.N7173>