From owner-freebsd-questions@FreeBSD.ORG Sat Jan 8 21:41:29 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 47C55106566B for ; Sat, 8 Jan 2011 21:41:29 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [77.88.46.8]) by mx1.freebsd.org (Postfix) with ESMTP id 852C28FC0A for ; Sat, 8 Jan 2011 21:41:28 +0000 (UTC) Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward3.mail.yandex.net (Yandex) with ESMTP id 5D0B056D8401; Sun, 9 Jan 2011 00:41:25 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1294522885; bh=W356W3QhIgxxMYxelDDJ3GbQQqRAo29jhO9qWr634S0=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=j4ryYVP/rYEj5uC0iI+z1f5MuYeI5SXfUirnbaPMX50g8vZajdtBewXkb5vsu5i8M gE+BJhu9loG63Ydc9aP5zIAPt4avuul9rV3ElgsA2gKPIjYMy1cAoD1MhKfGUg5QhW 4gqEonYHfsY7PT1my6NwSPcWFbU/7/92UFsXwjwg= Received: from HOMEUSER (unknown [77.93.52.5]) by smtp1.mail.yandex.net (Yandex) with ESMTPA id 118D029009F; Sun, 9 Jan 2011 00:41:24 +0300 (MSK) Date: Sat, 8 Jan 2011 23:41:24 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1801316867.20110108234124@yandex.ru> To: Giorgos Keramidas In-Reply-To: References: <155307659.20110108231807@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re[2]: How to clean system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2011 21:41:29 -0000 GK> On Sat, 8 Jan 2011 23:18:07 +0200, Коньков Евгений 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 GK> No, there's no such command. If you are looking for a way to 'deinstall GK> all ports & packages' though, it may be as easy as: GK> 1. Remove all the currently installed ports: GK> # rm -fr /usr/local GK> # mkdir /usr/local && cd /usr/local GK> # mtree -deU < /etc/mtree/BSD.local.dist GK> 2. Remove all the information about 'installed packages', because you GK> don't have any of these anymore: GK> # rm -fr /var/db/pkg/* GK> 3. Optionally, if you are going to reconfigure all your ports from GK> scratch, remove the saved port configuration options: GK> # rm -fr /var/db/ports/* I have tried: pkg_delete -a but many files are left in /usr/bin /usr/sbin ... ((( also there are files from old 7.2 system, now I have 9.0 -- С уважением, Коньков mailto:kes-kes@yandex.ru