[HOW-TO] cvsup for ports  --  Re: compact portsnap db
    Rudy 
    crapsh at monkeybrains.net
       
    Sat Jan  5 18:42:19 PST 2008
    
    
  
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
    
    
More information about the freebsd-questions
mailing list