From owner-freebsd-questions@FreeBSD.ORG Thu Aug 13 22:20:15 2009 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 7CBE51065690 for ; Thu, 13 Aug 2009 22:20:15 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 55F0A8FC15 for ; Thu, 13 Aug 2009 22:20:15 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MO-MR003.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KOC00JS561QJR10@VL-MO-MR003.ip.videotron.ca> for freebsd-questions@freebsd.org; Thu, 13 Aug 2009 18:20:14 -0400 (EDT) Message-id: <4A8491A1.30301@videotron.ca> Date: Thu, 13 Aug 2009 18:20:17 -0400 From: PJ User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) To: Polytropon References: <4A8489ED.6040802@videotron.ca> <20090814000703.bb91993d.freebsd@edvax.de> In-reply-to: <20090814000703.bb91993d.freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: this is csup ? 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: Thu, 13 Aug 2009 22:20:15 -0000 Polytropon wrote: > On Thu, 13 Aug 2009 17:47:25 -0400, PJ wrote: >> Please, please reassure me that I do come from Mars: >> >> What am I missing in the following? (direct quote from >> http://www.shute.org.uk/misc/freebsd_uptodate.html : >> >> Then copy this script to /usr/local/sbin/ and run it when you want to >> update your ports, source & docs. >> #!/bin/sh >> # >> # Update source, docs and ports >> >> LOCAL_DIR="$(pwd)" >> >> cd /usr/src >> make update >> cd /usr/ports >> make fetchindex > > Yes, the "make update" command either employs csup or cvsup (from ports, > e. g. cvsup-without-gui). Which one is used is controlled by the > setting in /etc/make.conf, for example: > > SUP_UPDATE= yes > SUP= /usr/bin/csup > SUPFLAGS= -g -L 2 > SUPHOST= cvsup.freebsd.org > SUPFILE= /etc/sup/stable.sup > PORTSSUPFILE= /etc/sup/ports.sup > > Version control is done by the sup control files. > > If you do "make update" in /usr/src, I think the /usr/ports subtree > will get updated, too. If not, don't forget to > > # cd /usr/ports > # make update > > in order to update the ports. > > Note that there are other tools that can do that, too, e. g. portsnap. > > > >> echo "Now run:" >> echo "# /usr/local/sbin/portsdb -u " >> echo "# /usr/local/sbin/pkgdb -uvF " > > This is only important if you use tools like portupgrade. > > > > Erm, what was the initial question? Well, I'm a bit confused about this "script" - something doesn't make sense - what are you supposed to call the script? And it doesn't work as written: # update-ports #(the name I gave the script - maybe I didn't understand something about how to write the script - the instructions clearly said copy the script) make: don't know how to make update. Stop /usr/ports/INDEX-7.bz2 100% of 1283 kB 581 kBps Now run: /usr/local/sbin/update-ports: echo# /usr/local/sbin/portsdb -u : not found /usr/local/sbin/update-ports: echo /usr/local/sbin/pkgdb -uvF : not found I guess that then I have to rund them manually... something ain't right, right?