From owner-freebsd-questions@FreeBSD.ORG Mon Nov 26 14:09:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95B448BE for ; Mon, 26 Nov 2012 14:09:06 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 18A9C8FC12 for ; Mon, 26 Nov 2012 14:09:05 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id qAQE8rWH022578 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 26 Nov 2012 14:09:02 GMT (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.7.1 smtp.infracaninophile.co.uk qAQE8rWH022578 Authentication-Results: smtp.infracaninophile.co.uk/qAQE8rWH022578; dkim=none reason="no signature"; dkim-adsp=none (insecure policy) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <50B377F4.1020507@freebsd.org> Date: Mon, 26 Nov 2012 14:08:52 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: When Is The Ports Tree Going To Be Updated? References: <50B2A57A.3050500@tundraware.com> <50B2A8D8.90301@FreeBSD.org> <50B2AA07.8090103@tundraware.com> <201211251856.40381.lumiwa@gmail.com> <50B2BEE1.9030903@tundraware.com> <50B31AAB.6000903@FreeBSD.org> <50B36500.7040308@tundraware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2012 14:09:06 -0000 On 26/11/2012 13:49, Odhiambo Washington wrote: > I am starting to switch, and after all the discussions in this thread, I > replaced my csup cron entry with the following: > > portsnap fetch && portsnap extract && portsnap update You definitely don't want to do this. Most importantly, 'extract' and 'update' aren't compatible. 'extract' says 'take all the data you downloaded, synthesize a *complete* ports tree from it, and overwrite /usr/ports with that, never mind what might have been there before'. 'update' says 'just add the changed bits since the last time you ran portsnap' ie. you only need to run 'extract' *once*, then you keep up to date by running 'update' at intervals. Secondly, for the sake of the servers, please don't run 'portsnap fetch' from a cron job. You're not the only person to think of doing that, and most people who do have the job run at the top of the hour. This is bad. The servers really don't like it when several thousand cronjobs all fire off simultaneously and the system load goes through the roof. Which is why 'portsnap cron' exists -- it does exactly the same as fetch, except it waits for a random amount of time before pulling down any data. Thirdly, you can tell portsnap several commands at once. So change your cron invocation to just: portsnap cron update and you should be happy. > Initially I just had `csup -z -L 2 /usr/share/examples/cvsup/9.x-ports` > where 9.x-ports was an edited version of ports-supfile. > > Now I have an /etc/portsnap.con with the equivalent edits from my 9.x-ports > > Is this how best to do it? No. You almost never need to modify the default portsnap.conf at all. portsnap works best if you use it to maintain a complete ports tree. It also automatically uses a geographically close server for best performance. > > And now I need to find an alternative to handle the src updates using svn > or something... SVN works, but isn't amazingly quick. If you're on a release branch you can get the src (and just the src) using freebsd-update(8), which should be pretty speedy and which I think is going to be the officially blessed method for non-developers to keep up to date. Although anyone will still be able to use SVN if they want to. You'll need to tweak /etc/freebsd-update.conf slightly to get just the system sources. It's pretty obvious what to do. Cheers, Matthew