Date: Wed, 16 Dec 2015 08:23:15 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Migrating from ports to pkg Message-ID: <56711F73.1020606@FreeBSD.org> In-Reply-To: <5670B7C8.5000603@columbus.rr.com> References: <CAPi0psvaKXKo-951QWy7_CEKD4yZO3wK8E=gHKu4=eTAqG%2B4Xg@mail.gmail.com> <5670B7C8.5000603@columbus.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56711F73.1020606>