Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jan 2011 22:35:12 +0100
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= <kes-kes@yandex.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to clean system
Message-ID:  <xeiay66vt6y7.fsf@kobe.laptop>
In-Reply-To: <155307659.20110108231807@yandex.ru> (=?utf-8?B?ItCa0L7QvdGM?= =?utf-8?B?0LrQvtCyINCV0LLQs9C10L3QuNC5Iidz?= message of "Sat, 8 Jan 2011 23:18:07 %2B0200")
References:  <155307659.20110108231807@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kes-kes@yandex.ru> 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/*




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