From owner-freebsd-questions@FreeBSD.ORG Sat Jan 8 21:35:32 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E772F106566B for ; Sat, 8 Jan 2011 21:35:32 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6428FC18 for ; Sat, 8 Jan 2011 21:35:31 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.629, required 5, ALL_TRUSTED -1.00, BAYES_00 -1.90, FSL_RU_URL 2.27) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: p08LZGMD023604 Received: from gkeramidas-glaptop.linux.gr (217-162-216-74.dclient.hispeed.ch [217.162.216.74]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id p08LZGMD023604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 8 Jan 2011 23:35:22 +0200 From: Giorgos Keramidas To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= References: <155307659.20110108231807@yandex.ru> Date: Sat, 08 Jan 2011 22:35:12 +0100 In-Reply-To: <155307659.20110108231807@yandex.ru> (=?utf-8?B?ItCa0L7QvdGM?= =?utf-8?B?0LrQvtCyINCV0LLQs9C10L3QuNC5Iidz?= message of "Sat, 8 Jan 2011 23:18:07 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: How to clean system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2011 21:35:33 -0000 On Sat, 8 Jan 2011 23:18:07 +0200, =D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0= =B2 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 wrote: > Hi > System have many programs. > Wanna to upgrade to new version of FBSD > > Is it possible to clean system from garbage (all programs, files, > header files, except configuration files) > like installing FBSD from CD? > > is there cmd? > make clean-system No, there's no such command. If you are looking for a way to 'deinstall all ports & packages' though, it may be as easy as: 1. Remove all the currently installed ports: # rm -fr /usr/local # mkdir /usr/local && cd /usr/local # mtree -deU < /etc/mtree/BSD.local.dist 2. Remove all the information about 'installed packages', because you don't have any of these anymore: # rm -fr /var/db/pkg/* 3. Optionally, if you are going to reconfigure all your ports from scratch, remove the saved port configuration options: # rm -fr /var/db/ports/*