Date: Sat, 8 Jan 2011 23:41:24 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= <kes-kes@yandex.ru> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re[2]: How to clean system Message-ID: <1801316867.20110108234124@yandex.ru> In-Reply-To: <xeiay66vt6y7.fsf@kobe.laptop> References: <155307659.20110108231807@yandex.ru> <xeiay66vt6y7.fsf@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
GK> On Sat, 8 Jan 2011 23:18:07 +0200, Коньков Евгений <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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1801316867.20110108234124>