From owner-freebsd-questions@FreeBSD.ORG Sat May 19 13:58:38 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 973501065670 for ; Sat, 19 May 2012 13:58:38 +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 0C9EF8FC15 for ; Sat, 19 May 2012 13:58:37 +0000 (UTC) Received: from seedling.local (209.Red-88-21-46.staticIP.rima-tde.net [88.21.46.209]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q4JDwRtr089203 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 19 May 2012 14:58:28 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q4JDwRtr089203 Authentication-Results: smtp.infracaninophile.co.uk/q4JDwRtr089203; dkim=none (no signature); dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host 209.Red-88-21-46.staticIP.rima-tde.net [88.21.46.209] claimed to be seedling.local Message-ID: <4FB7A6F9.2090202@FreeBSD.org> Date: Sat, 19 May 2012 15:58:17 +0200 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Beastie-Boy References: <1337434051474-5709999.post@n5.nabble.com> In-Reply-To: <1337434051474-5709999.post@n5.nabble.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3A927B9260673F4CE9BDDE52" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KHOP_DYNAMIC, RCVD_IN_SORBS_DUL,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 Cc: freebsd-questions@FreeBSD.org Subject: Re: stay up to date with ports and packages, problem 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: Sat, 19 May 2012 13:58:38 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3A927B9260673F4CE9BDDE52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 19/05/2012 15:27, Beastie-Boy wrote: > i ran into problems keeping my ports-collection up to date. > Although i did a portsnap fet and install i think there are obsolete an= old > ports still on the disk. portsnap will synchronise your ports tree with what is in the FreeBSD CVS repo. The way it works, you shouldn't get any old ports left cluttering up /usr/ports unless things have gone very wrong. In which case portsnap would be emitting all sorts of error messages and the fact that there was a problem would be obvious. > I tried to compile a programm and it complained about an older version = of a > depending package. OK. This is a conceptual thing. The ports tree (ie. /usr/ports) is a set of *instructions* for how to build and install ports. portsnap will update all those instructions in the ports tree, but to update the actual ports you have installed requires use of a different software package. > I deleted the whole ports-dir, did the fetch and extract again, problem= > persists still. Yep. I hope you can see from what I wrote above how doing that wouldn't solve the problem you are seeing. > Yes, i searched all the forums and read a lot about managing ports and > packages. > Right now i am stuck. > So, how do i delete really *all* ports and *all* packages at once? That's a bit drastic and pretty much something you'ld never actually want to do in normal usage. However, for completeness' sake: # pkg_delete -af will remove all installed ports. After doing that there should be hardly anything left under /usr/local -- most of what's left would be config files in /usr/local/etc. But don't do that. It is a big waste of time and completely unnecessary.= > Is it possible with doing a fectch and extract having the latest ports?= > I was recommended to use only portmaster and not to use sysinstall afte= r a > finished installation. > Well, i dont know. The advice to use portmaster is good. A typical session to maintain all your ports goes something like this: # portsnap fetch update (Gets the latest contents for /usr/ports) # less /usr/ports/UPDATING (Check for any special instructions affecting any ports you have installed. Assuming nothing out of the ordinary is required (and it usually isn't), then...) # pkg_version -vIL=3D (see what needs updating) # portmaster -a (update everything out of date) and that's it. It's not particularly hard to do, although it can be time consuming, and very occasionally something will glitch out. If you wait a day or so and then try again the glitch will probably have been fixed. You'll find updates are more likely to run smoothly if you do them like this regularly -- monthly should be adequate -- plus immediate updates of anything portaudit reports has security problems.) Your original problem -- a port not installing because of an out of date dependency -- can be easily cured by: # portmaster category/example where category/example is the port's directory path under /usr/ports. This will update all dependencies as required before installing category/example. If you are still experiencing problems, please save a transcript of your updating session and put it on a pastebin site, and then ask again here with a link to the transcript. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig3A927B9260673F4CE9BDDE52 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+3pwIACgkQ8Mjk52CukIxfZgCglZUHANDObMa+OpT2jRMy2m/Y wS0An3PBaoh0Ywl7lwsjqw/FNXIT8Dr5 =vUdY -----END PGP SIGNATURE----- --------------enig3A927B9260673F4CE9BDDE52--