From owner-freebsd-questions@FreeBSD.ORG Sun Jan 6 03:31:31 2008 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 D762716A418 for ; Sun, 6 Jan 2008 03:31:31 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta2.srv.hcvlny.cv.net (mta2.srv.hcvlny.cv.net [167.206.4.197]) by mx1.freebsd.org (Postfix) with ESMTP id B3B1B13C461 for ; Sun, 6 Jan 2008 03:31:31 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta2.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JU700DPODSI42H0@mta2.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Sat, 05 Jan 2008 22:31:31 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m063VTcU051807; Sat, 05 Jan 2008 22:31:29 -0500 Date: Sat, 05 Jan 2008 22:31:29 -0500 From: "Aryeh M. Friedman" In-reply-to: <4780406A.9090906@monkeybrains.net> To: Rudy Message-id: <47804B91.9000406@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=windows-1251 Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.5 References: <579428539.20080105170507@bk.ru> <4780406A.9090906@monkeybrains.net> User-Agent: Thunderbird 2.0.0.9 (X11/20080104) Cc: Michael Lednev , freebsd-questions@freebsd.org Subject: Re: [HOW-TO] cvsup for ports -- Re: compact portsnap db X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 03:31:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rudy wrote: > 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 Your better off using /usr/share/examples/cvsup/ports-supfile because it is pre-debuggeg... also even though I don't use it because the nearest cvsup mirror is 5 miles away is install fastest_cvsup to find the fastest host. > ------------------------------------------------- > #/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 Note if your not going to use the local cvs repository method I use then you should use csup not cvsup because it comes with the base system (the semantics are identical to those of cvsup) [the only difference is csup can't handle "raw" cvs commands thus the cvs-supfile doesn't work with it] Make an alias for this that way when you update your sources you won't lose the host settings if /usr/share/examples/cvsup gets overwritten... for example my alias is: (I keep a complete local copy of the cvs repo so I use cvs-supfile instead of ports or standard [note 1]): alias cvsup "cvsup -h cvsup9.us.freebsd.org /usr/share/examples/cvs-supfile" > > If you don't have cvsup installed, run this command: # pkg_add -r > cvsup-without-gui It is better to use all ports or all packages so either do: cd /usr/ports/net/cvsup-without-gui make install clean or after doing the above do a pkg_delete -a (assuming that your working with a clean machine [no ports/packages instaleld except cvsup] > > 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. Actually it is not like that at all.. cvsup/csup is the officially preferred method and any other method is a short cut of some kind... many of them have very subtle issues that the typical end-user should not notice but should be aware of... > > - Rudy _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions To > unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Notes: 1. I keep a local cvs repository because unlike cvsup/csup straight cvs will not over write locally modified files (it will do it's best to merge in newer changes while persevering your local ones) - -- Aryeh M. Friedman FloSoft Systems, Java Developer Tools http://www.flosoft-systems.com Developer, not business, friendly. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgEuRjRvRjGmHRgQRAj/4AJ9rAd/rSZOPBDgtMfDjMzBEf8OCgQCgslO6 EPONuz7Tj7TMPQuvDhCHCdI= =lxH2 -----END PGP SIGNATURE-----