Extract particular date snapshot from /var/db/portsnap?

Greg Larkin glarkin at FreeBSD.org
Wed Jun 15 00:59:41 UTC 2011

Hash: SHA1

On 6/14/11 8:09 PM, Peter Vereshagin wrote:
> You can't take no for an answer, freebsd-questions!
> How can I extract an 'old' snapshot from portsnap database?
> Does it keep them? Does portsnap keep snapshots fetched previously?
> Suppose I need the particular port or the whole tree as of the specified date
> and time?
> Or, if I need the particular version of the specified port and optionally  the
> ports tree that corresponds it?
> Thank you.

Hi Peter,

You can fetch a ports tree as of specific date like so:

cvs -d :ext:anoncvs at anoncvs1.FreeBSD.org:/home/ncvs export -D 2010-10-01
- -d ports-2010-10-01 ports

In this example, I am exporting (no CVS metadata dirs) a full ports tree
as of Oct 1st, 2010 into the directory "ports-2010-10-01".

You can keep many different dated copies of the ports tree, and you can
also fetch portions of it as of a specific date if you specify a more
complete module name, e.g. ports/lang/gcc45.

Hope that helps,
- -- 
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/cpucycle/      - Follow you, follow me
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the freebsd-questions mailing list