From owner-freebsd-questions@freebsd.org Wed Dec 16 14:04:32 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 196A5A43D7A for ; Wed, 16 Dec 2015 14:04:32 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C51610A9 for ; Wed, 16 Dec 2015 14:04:31 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id tBG8NLnx076271 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 16 Dec 2015 08:23:21 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk tBG8NLnx076271 Authentication-Results: smtp.infracaninophile.co.uk/tBG8NLnx076271; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: Migrating from ports to pkg To: freebsd-questions@freebsd.org References: <5670B7C8.5000603@columbus.rr.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56711F73.1020606@FreeBSD.org> Date: Wed, 16 Dec 2015 08:23:15 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5670B7C8.5000603@columbus.rr.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oCQW2JDUKQRhHnnAmfftcJOgGPSqJSfmD" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2015 14:04:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oCQW2JDUKQRhHnnAmfftcJOgGPSqJSfmD Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 16/12/2015 01:00, Baho Utot wrote: >> I have been using "make" to install ports and "portsnap/portmaster" to= >> update my system. But I'm over it now. >> >> I'm running 10.1-RELEASE and have very few ports installed. >> >> Is the migration from make/portsnap/portmaster -> pkg as simple as: >> >> pkg delete portmaster >> rm -rf /usr/ports >> pkg update You don't need to run 'pkg update' as a separate step: it happens automatically as part of 'pkg upgrade' >> pkg upgrade >=20 > pkg upgrade -f >=20 > This will "reinstall and upgrade all packages on the system. Again, forcing all your packages to upgrade is not actually necessary -- you only really have to do that for major OS version upgrades. It can be useful though if you do it lie so: * Make a list of the ports you specifically want installed, omitting the packages that are only installed to fulfil dependencies. * Delete all installed ports -- ie. clean out /usr/local except for any important configuration bits under /usr/local/etc. * Install only the ports you wanted from the list, which will pull in all necessary dependencies automatically. What this does is get the 'automatic' flags set correctly on those packages that are only installed as dependencies. That way, in future as you add or delete ports or as the dependencies of ports change over time, you can use 'pkg autoremove' to delete stuff you have installed but no longer need. Again, this is an optional step -- your system will work fine either way. You've probably got a number of ports installed solely to provide build dependencies -- things like gmake or alternate versions of compilers. The above will fix that, but if you don't decide to follow that procedure, you might want to delete some of the things just used for port building. Having that stuff installed won't hurt you, but it's all additional maintenance which you can avoid by simply deleting those packages. What you will /have/ to do is look at any non-standard options settings you've been using with portmaster. You'll need to decide if you can live without the changes resulting from altered options or not. If you can't then you'll need to work out some alternate method of building packages with the options you want. I'm a big fan of poudriere for that, but there are other methods. Cheers, Matthew --oCQW2JDUKQRhHnnAmfftcJOgGPSqJSfmD 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 iQJ8BAEBCgBmBQJWcR95XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT7lsP/RPCabem6YdqbuUsJGtRJxZO dfshnM7zxdY8e8kij5XlLcNQTMurwaLnP6RhpavA2Qs0LeGz8JF5QXrN9xa5VoOc M0n4ErB1Nx6bzyXKlmUcqHbQVHPOGdUKKcZdZnJCGwGRXPLDiIDNxE5s0VParQjY T4yOQfSVSDGoi25xFEVPlh2NWnw4NwFTIxE9Hv3yuVDY0HLDYf+Wa+/k468WnuTV OWzkq2otCVado0D6+hN/2QRjuOHlYyBIzlnJpKIhfzId7Gze8xinwjrBLQZYqA29 x4b9EVkuKJXqyMzIyOiZpFxxm/dJoVwiatBFgN0RGTBZmsuHTnKG4rnQCnWGnVxd s70DRnG2NIRQxpPBqajNRRPZu3qHxySgA7sbh9+X/8sFiHGhErKKInM7ObF1PKu5 0jSVzKMKj694DJFconVKC85E/NsxeS7WmNH41KZv08QEUkjEg+KYVdXoYNrxq5rl C2D3Ja2WgN6+AJ6aAGzJ8a0QCONCJpk3kFdGtAg6LHtbAD+pypDaAGcs7HaxFgVt Pj0pmlXWUO57miyi27MzD4rNb2hxu67/BMJkNmi0n8JHpgbkr7yjtkX1puoAw7Jm tz9USvmJ2qgbLmH/LpVYXdtKFDmd+e45HB6l9Jgc7kBsOedy47lRUoFbr5Ih1iBL MUqcHjJqf+CpvPlVlsjt =i2yg -----END PGP SIGNATURE----- --oCQW2JDUKQRhHnnAmfftcJOgGPSqJSfmD--