From owner-freebsd-ports@FreeBSD.ORG Sun Nov 16 09:30:53 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B360ABEA for ; Sun, 16 Nov 2014 09:30:53 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 57BB4FB8 for ; Sun, 16 Nov 2014 09:30:53 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id sAG9UXxx083376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 16 Nov 2014 09:30:42 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk sAG9UXxx083376 Authentication-Results: smtp.infracaninophile.co.uk/sAG9UXxx083376; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral Message-ID: <54686EB0.70804@FreeBSD.org> Date: Sun, 16 Nov 2014 09:30:24 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ? References: <20141116082544.GB44537@home.opsec.eu> In-Reply-To: <20141116082544.GB44537@home.opsec.eu> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1iKQB6jWuAmqT4Pw06w2EcWXlcKM3v1sx" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 09:30:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1iKQB6jWuAmqT4Pw06w2EcWXlcKM3v1sx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 16/11/2014 08:25, Kurt Jaeger wrote: > Now that 10.1 is released, I re-built all the ports relevant to me via >=20 > poudriere bulk -f ~/pkg/all -j 10x >=20 > and then had a nice new repo to pkg update. >=20 > But: If I upgrade a 10.0 box to 10.1 and then ask them to use the > new repo, how can I enforce a complete reinstall of all packages > built on 10.1 instead of having a mix of old and new pkgs ? For a 10.0 to 10.1 upgrade, reinstalling everything is not generally required. However I assume you have your own reasons to want to do so. You can force a re-install of all installed packages by: # pkg upgrade -f If you want to selectively update just the packages installed from a particular repo, or installed before a specific date, there isn't a handy built-in way to do that. You'll have to generate a list of appropriate packages and feed it to pkg install -f using xargs(1) -- eg. # pkg query "%n-%v %An %Av" | grep "repository $reponame" \ | cut -d' ' -f 1 | xargs pkg install -f # date=3D$( date -j -f "%Y-%m-%d %H:%M:%S" "2014-10-16 00:00:00" +%s ) # pkg query "%n-%v %t" | awk "{ if (\$2 < $date ) print \$1; }" \ | xargs pkg install -f The business with 'date -j -f ...' is to convert a date specified in the usual way (year, month, day, hour, minutes, seconds) into the unix epoch time, which can then be compared as an integer to the timestamp pkg(8) produces. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --1iKQB6jWuAmqT4Pw06w2EcWXlcKM3v1sx 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.20 (Darwin) iQJ8BAEBCgBmBQJUaG64XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT5p8P/Ri/whx9E5cn/Uf9M/Jmeukl MtU9Lu9RYuBqLpm5gHivFFRmR+WCMc1IrN3YrGtqzoAfqkOAOU6qvXJb3A2tlpmz IjrBBsuiVbrmbPnSqJ1Txrfiqz4Kt/WwrwuMDAP1WW+gUFhazQxKgrnRYwSybeKT PxKMb2SvXyAoFMECQ6nJ5ouGyoilrhDWxx2BXmjfxXqgLQG4l6+Mw79tzNW4nkO0 T91TwlADQwPwJGIOunL8mfTuycQgZc/X7tbGirAwvwo6hm8GbCnt/Y84e6R/9W7F BY0aDq5i6k0J4Pe8XckBpUOsVpl2doJhBtUA1BYa3sGEKUl00waQlfRlwQ+LjduV jDVIyiHUKlO1j9Ymafgpt2wIUnUW/fWLBhujbDsYjFtAHGP0LVs66czT53yw8sL5 Ur064HOUSF2LCurWfRn1MHjQCjPkyqLZ6pQEKqRCUqvcbGYKpBfVL3PfxaYCJcj/ uPfSkLlSs4wuRnS4Uz2smwKvKRSS2RtQdNMy6RMRiW9H8E/7F/tEmIqTwOQH1PBu AUJYnZtkZqHb1uFchB06EVwntdM09Ix0biYKjId3EpPrES3pWMBl83LLas3gKrLY b1gANWntMJF8Vylx6GhN744CCe4oYqZmfI1bBgtCcBv8p10rhWDV9h6oa334v7E7 i55EQ7aR9LDIsRE5jpav =ny6k -----END PGP SIGNATURE----- --1iKQB6jWuAmqT4Pw06w2EcWXlcKM3v1sx--