From owner-freebsd-questions@FreeBSD.ORG Thu Aug 13 22:39:05 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 08966106564A for ; Thu, 13 Aug 2009 22:39:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id BD74B8FC41 for ; Thu, 13 Aug 2009 22:39:04 +0000 (UTC) Received: from r55.edvax.de (port-92-195-1-225.dynamic.qsc.de [92.195.1.225]) by mx02.qsc.de (Postfix) with ESMTP id 0B8031E42D; Fri, 14 Aug 2009 00:39:02 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n7DMd2fp002046; Fri, 14 Aug 2009 00:39:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 14 Aug 2009 00:39:02 +0200 From: Polytropon To: PJ Message-Id: <20090814003902.3835022b.freebsd@edvax.de> In-Reply-To: <4A8491A1.30301@videotron.ca> References: <4A8489ED.6040802@videotron.ca> <20090814000703.bb91993d.freebsd@edvax.de> <4A8491A1.30301@videotron.ca> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: this is csup ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2009 22:39:05 -0000 On Thu, 13 Aug 2009 18:20:17 -0400, PJ wrote: > Well, I'm a bit confused about this "script" - something doesn't make > sense - what are you supposed to call the script? The script is intended to automate updating a bit. It still relies on the presence of csup or cvsup AND its correct configuration. > And it doesn't work as > written: Oh yes, it does - under specific circumstances. :-) > # 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 Try it manually, just to be sure: # cd /usr/ports # make update Or: # cd /usr/src # make update Both should work. > /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? Yes, you CAN run them - but it depends on the following: Do you have portinstall / portupgrade installed, and do you use it? Then it's always wise to run pkgdb. The program portsdb belongs to the same port. If these commands fail, you don't have portupgrade installed. Before you use the script, you should try to use its steps manually first, just to make sure they work. In an abbreviated form, update can go like this: #!/bin/sh cd /usr/ports make fetch-index make update pkgdb -uvF portsdb -u cd /usr/src make update Again, it's important that /etc/make.conf and the control files for the update program - csup or cvsup - are correct. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...