Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jan 2008 18:43:54 -0800
From:      Rudy <crapsh@monkeybrains.net>
To:        Michael Lednev <liettneff@bk.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   [HOW-TO] cvsup for ports  --  Re: compact portsnap db
Message-ID:  <4780406A.9090906@monkeybrains.net>
In-Reply-To: <579428539.20080105170507@bk.ru>
References:  <579428539.20080105170507@bk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Lednev wrote:
> Hello.
> 
> Is there any way to compact /var/db/portsnap other than deleting it
> and doing postsnap fetch?
> 

I don't like portsnap -- granted I've never typed the portsnap command in my 10 years of FreeBSD 
use.  I use cvsup!

More info:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html

QUick HOW-TO
Make a file called /usr/src/ports-supfile
-------------------------------------------------
#/usr/src/ports-supfile
*default host=cvsup8.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all
-------------------------------------------------

Then, run this command:
cvsup /usr/src/ports-supfile

If you don't have cvsup installed, run this command:
  # pkg_add -r cvsup-without-gui

For more info on the supfile, look at this file on your FreeBSD machine: 
/usr/share/examples/cvsup/ports-supfile

Preferring cvsup to portsnap is kinda like preferring vim over emacs...  It's a holy war and the 
vi/cvsup side uses less disk space.

- Rudy



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