how to restore /usr/src

2008-01-21 Thread ivan dimitrov
Hi guys

how can i reinstall the original /usr/src tree?


thanks in advance
I.

   
-
Never miss a thing.   Make Yahoo your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to restore /usr/src

2008-01-21 Thread Nerius Landys
how can i reinstall the original /usr/src

 Oh that's really easy.  Don't fret.  I delete it all the time and get it
back in the following way.

In the handbook, there's a section about synchronizing your source:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html

Use 'cvsup' or 'csup'; if your system is newer 'csup' will be part of the
system.  Find your 'standard-supfile' file (probably in
/usr/share/examples/cvsup/standard-supfile), copy it to your home directory
and modify it by changing the lines

*default host=CHANGE_THIS.FreeBSD.org (change 'CHANGE_THIS' to 'cvsup11.us'
for example)
*default release=cvs tag=CVS TAG (see below)

and then run 'csup standard-supfile' or 'cvsup standard-supfile'.

'cvsup' is in /usr/ports/net/cvsup-without-gui if you need to install it.
CVS TAGs are explained in
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to restore /usr/src

2008-01-21 Thread Rakhesh Sasidharan

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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to restore /usr

2003-01-17 Thread Len Conrad
Trying to free up disk space, a user accidentally rm'd /usr instead of 
/usr/ports.

Starting with the cdrom, what is the best way to get the /usr tree back 
onto the disk?

thanks
Len


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: how to restore /usr

2003-01-17 Thread P. U. Kruppa
On Fri, 17 Jan 2003, Len Conrad wrote:

 Trying to free up disk space, a user accidentally rm'd /usr instead of
 /usr/ports.

 Starting with the cdrom, what is the best way to get the /usr tree back
 onto the disk?
If your system still can boot, you can do
# /stand/sysinstall
-- configure -- Distributions
and select the things you need.
In case you remember config-files you have edited, try to save
them from beeing overwritten by changing their names with mv .
You can rename them afterwards.

For the future:
There are quite simple tools to backup and restore the contents
of your partitions: dump and restore.

Hope that helps,

Uli.

 thanks
 Len


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


*---*
*Peter Ulrich Kruppa*
*  -  Wuppertal -   *
*  Germany  *
*---*

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to restore /usr

2003-01-17 Thread Axel Gruner
On Fri, 17 Jan 2003 05:23:13 -0600
Len Conrad [EMAIL PROTECTED] wrote:

 Trying to free up disk space, a user accidentally rm'd /usr instead of
 /usr/ports.
 
 Starting with the cdrom, what is the best way to get the /usr tree
 back onto the disk?

You did a backup, right?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to restore /usr

2003-01-17 Thread Len Conrad
/stand/sysinstall works

so what if we did

install additional dist sets  + just binary base distribution?

Len


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to restore /usr

2003-01-17 Thread P. U. Kruppa
On Fri, 17 Jan 2003, Len Conrad wrote:

 /stand/sysinstall works

 so what if we did

 install additional dist sets  + just binary base distribution?
Yes, and the manuals are quite useful.

Good Luck!

Uli.

 Len


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


*---*
*Peter Ulrich Kruppa*
*  -  Wuppertal -   *
*  Germany  *
*---*

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message