Re: Updating the ports collection

2009-10-07 Thread Daniel Bye
On Tue, Oct 06, 2009 at 09:07:07PM -0400, Chris Hill wrote:
 On Wed, 7 Oct 2009, Olivier Nicole wrote:
 
 Hi Chris,
 
 The FreeBSD handbook section 4.5.1 describes several methods for
 obtaining the ports collection including CVSup, Portsnap, and sysinstall.
 
 Section 4.5.1 also describes how to update the ports collection, but
 only for the CVSup and Portsnap methods.
 
 Q1: How do I update the ports collection after using sysinstall to
 obtain it?
 
 I cannot speak for postsnap, but for cvsup:
 
 csup works (almost?) the same as cvsup, and is in the base system 
 nowadays. I used to install cvsup, but now I only install fastest_cvsup; 
 it's just a utility to find the fastest server for you at the moment.
 
 Some may correct me, but I use a file that contains:
 
 *default tag=.
 *default host=cvsup2.jp.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs
 *default delete use-rel-suffix
 *default compress
 ports-all
 
 I do the same, and run csup as:
 
 csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports

You can set 

SUPHOST= `/usr/local/bin/fastest_cvsup -Q -c us`
SUPFLAGS= -g

in /etc/make.conf and save yourself some typing.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpgwSQSo6iuQ.pgp
Description: PGP signature


Re: Updating the ports collection

2009-10-07 Thread krad
2009/10/7 Daniel Bye freebsd-questi...@slightlystrange.org

 On Tue, Oct 06, 2009 at 09:07:07PM -0400, Chris Hill wrote:
  On Wed, 7 Oct 2009, Olivier Nicole wrote:
 
  Hi Chris,
  
  The FreeBSD handbook section 4.5.1 describes several methods for
  obtaining the ports collection including CVSup, Portsnap, and
 sysinstall.
  
  Section 4.5.1 also describes how to update the ports collection, but
  only for the CVSup and Portsnap methods.
  
  Q1: How do I update the ports collection after using sysinstall to
  obtain it?
  
  I cannot speak for postsnap, but for cvsup:
 
  csup works (almost?) the same as cvsup, and is in the base system
  nowadays. I used to install cvsup, but now I only install fastest_cvsup;
  it's just a utility to find the fastest server for you at the moment.
 
  Some may correct me, but I use a file that contains:
  
  *default tag=.
  *default host=cvsup2.jp.FreeBSD.org
  *default base=/var/db
  *default prefix=/usr
  *default release=cvs
  *default delete use-rel-suffix
  *default compress
  ports-all
 
  I do the same, and run csup as:
 
  csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports

 You can set

 SUPHOST= `/usr/local/bin/fastest_cvsup -Q -c us`
 SUPFLAGS= -g

 in /etc/make.conf and save yourself some typing.

 Dan
 you
 --
 Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \



the above way is good but this is the simplest as it requires no additional
programs or editing

csup -h cvsup.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile


I use the following as its a bit faster

csup -h cvsup.uk.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile

you can obviously insert your own country code
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Updating the ports collection

2009-10-06 Thread Chris Stankevitz


The FreeBSD handbook section 4.5.1 describes several methods for 
obtaining the ports collection including CVSup, Portsnap, and sysinstall.


Section 4.5.1 also describes how to update the ports collection, but 
only for the CVSup and Portsnap methods.


Q1: How do I update the ports collection after using sysinstall to 
obtain it?


Q2: Is this explained in the handbook?  If so, where?

Thank you,

Chris

PS: I uses sysinstall to obtain the ports collection from the CD during 
OS install

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating the ports collection

2009-10-06 Thread Manolis Kiagias
Chris Stankevitz wrote:

 The FreeBSD handbook section 4.5.1 describes several methods for
 obtaining the ports collection including CVSup, Portsnap, and sysinstall.

 Section 4.5.1 also describes how to update the ports collection, but
 only for the CVSup and Portsnap methods.

 Q1: How do I update the ports collection after using sysinstall to
 obtain it?

You can use csup as explained in section 4.5.1.  This will update the
Ports Collection  you installed from CD/DVD
by fetching only the required newer files

Or, you can use portsnap too like this:

First time:
portsnap fetch extract

Subsequent times:
portsnap fetch update


If you are starting with an empty Ports tree (for example you skipped
installing it from CD during sysinstall) portsnap will be faster than
csup. (Note you can start with an empty tree and csup as well)

Anytime you decide to switch from csup to portsnap, always perform an
'extract'

 Q2: Is this explained in the handbook?  If so, where?


In section 4.5 as you noticed already. Portsnap is also revisited in
chapter 24:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-portsnap.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating the ports collection

2009-10-06 Thread RW
On Tue, 06 Oct 2009 15:43:56 -0700
Chris Stankevitz cstankev...@toyon.com wrote:

 
 The FreeBSD handbook section 4.5.1 describes several methods for 
 obtaining the ports collection including CVSup, Portsnap, and
 sysinstall.
 
 Section 4.5.1 also describes how to update the ports collection, but 
 only for the CVSup and Portsnap methods.
 
 Q1: How do I update the ports collection after using sysinstall to 
 obtain it?

I'd suggest that you don't use the tree from sysinstall, unless your
intent is not to update the tree until the next release.

If you use portsnap the tree gets overwritten with the extract, so
you might as well not bother with the on-disk version. 


If you use csup then the steps are 

1. Set the tag to match the port snapshot on the disc and run csup

2. Set the tag to . (the current tree) and run csup again

Step 1 does nothing to the tree, but if you skip it you may end with
some stale files left in your tree, which could cause serious problems.
IMO this is more trouble than it's worth unless you have a dialup
connection. 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating the ports collection

2009-10-06 Thread Olivier Nicole
Hi Chris,

 The FreeBSD handbook section 4.5.1 describes several methods for 
 obtaining the ports collection including CVSup, Portsnap, and sysinstall.
 
 Section 4.5.1 also describes how to update the ports collection, but 
 only for the CVSup and Portsnap methods.
 
 Q1: How do I update the ports collection after using sysinstall to 
 obtain it?

I cannot speak for postsnap, but for cvsup:

- you re-run sysinstall and install cvsup from the CD
  (Configure/Packages/Net/CVSup)

- or, since you installed the port tree, you go to
  /usr/ports/net/cvsup-without-gui and you make, make install, make
  clean

 Q2: Is this explained in the handbook?  If so, where?

Some may correct me, but I use a file that contains:

*default tag=.
*default host=cvsup2.jp.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs
*default delete use-rel-suffix
*default compress
ports-all

You may change the default host accordingly.

Then I use the command cvsup name_of_that_file

Best,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating the ports collection

2009-10-06 Thread Chris Hill

On Wed, 7 Oct 2009, Olivier Nicole wrote:


Hi Chris,


The FreeBSD handbook section 4.5.1 describes several methods for
obtaining the ports collection including CVSup, Portsnap, and sysinstall.

Section 4.5.1 also describes how to update the ports collection, but
only for the CVSup and Portsnap methods.

Q1: How do I update the ports collection after using sysinstall to
obtain it?


I cannot speak for postsnap, but for cvsup:


csup works (almost?) the same as cvsup, and is in the base system 
nowadays. I used to install cvsup, but now I only install fastest_cvsup; 
it's just a utility to find the fastest server for you at the moment.



Some may correct me, but I use a file that contains:

*default tag=.
*default host=cvsup2.jp.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs
*default delete use-rel-suffix
*default compress
ports-all


I do the same, and run csup as:

csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports

...where /etc/supfile.ports is pretty much as above. In that case, it 
doesn't matter what default host is set to, since the -h option to csup 
overrides the default. The '-c us' part applies to me, but it might not 
for you; see the man page.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org