From owner-freebsd-questions Tue Apr 23 0:11:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from homemail.bjt.net (mailhub1.bjt.net [209.237.6.254]) by hub.freebsd.org (Postfix) with ESMTP id 4255437B405 for ; Tue, 23 Apr 2002 00:11:09 -0700 (PDT) Received: from foo.fake.primenet.com [209.237.31.190] by homemail.bjt.net with ESMTP (SMTPD32-7.06) id A75F215006C; Tue, 23 Apr 2002 00:03:59 -0700 Received: from baz.fake.primenet.com (baz [10.0.0.3]) by foo.fake.primenet.com (8.9.3/8.8.8) with ESMTP id AAA07883; Tue, 23 Apr 2002 00:11:02 -0700 (PDT) (envelope-from bko@idiom.com) Received: from baz.fake.primenet.com (localhost [127.0.0.1]) by baz.fake.primenet.com (8.12.2/8.12.2) with ESMTP id g3N7B30q063893; Tue, 23 Apr 2002 00:11:03 -0700 (PDT) (envelope-from bkogawa@baz.fake.primenet.com) Received: (from bkogawa@localhost) by baz.fake.primenet.com (8.12.2/8.12.2/Submit) id g3N7B21k063890; Tue, 23 Apr 2002 00:11:02 -0700 (PDT) From: "Bryan K. Ogawa" Message-Id: <200204230711.g3N7B21k063890@baz.fake.primenet.com> To: "Richard Shea" , questions@freebsd.org Subject: Re: /usr/X11R6 and /usr/src - can i get rid of them ? In-Reply-To: <20020420060051.D2A036D99F@fastmail.fm> References: <20020420060051.D2A036D99F@fastmail.fm> Date: Tue, 23 Apr 2002 00:11:02 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In localhost.freebsd.questions, you wrote: > Hi - I've got machine running FreeBSD 3.4 which does not run X. I would > like free up some disk space. When I look around for things to throw I > found /usr/X11R6 and /usr/src both of which seem to be relatively > large. > > Given that I never use X can I just delete /usr/X11R6 ?. In general, this would probably work, BUT you would need to make sure that none of your programs have an optional X interface (examples include emacs and xemacs). If they do, they might be linked against libraries in the X directory. If I were doing it, it would at least move it out of the way and see if it broke anything first, and possibly choose to only delete binaries that i'm sure I wouldn't use from /usr/X11R6/bin . > Similarly I think /usr/src is the source for large parts of the system. > In the past I have recompiled the kernel I presume if I got rid of this > I would not be able to do this in the future ? Or is it not kernel > source ? This is the kernel source (as well as the OS source). /usr/src/sys is your kernel sources -- I believe that you can delete all of the other directories as long as you keep all of /usr/src/sys and still recompile the kernel. As with /usr/X11R6, I'd recommend moving things out of the way and testing to make sure you don't break anything. -- bryan k ogawa http://www.idiom.com/~bko/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message