From owner-freebsd-questions@freebsd.org Mon Dec 7 15:05:05 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 87F419A007F for ; Mon, 7 Dec 2015 15:05:05 +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 130561D8E for ; Mon, 7 Dec 2015 15:05:04 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from host-4-75.office.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id tB7F4wCI063212 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 7 Dec 2015 15:04:58 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 tB7F4wCI063212 Authentication-Results: smtp.infracaninophile.co.uk/tB7F4wCI063212; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be host-4-75.office.adestra.com Subject: Re: Migrating to FreeBSD from Debian To: freebsd-questions@freebsd.org References: <86poyiuynx.fsf@gmail.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56659FC8.8020904@FreeBSD.org> Date: Mon, 7 Dec 2015 15:03:36 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MbrKR09g29ug9AE9ONUEAt8sTAhfKRntg" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED 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: Mon, 07 Dec 2015 15:05:05 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MbrKR09g29ug9AE9ONUEAt8sTAhfKRntg Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/12/07 14:23, Anton Sayetsky wrote: > 2015-12-07 16:21 GMT+02:00 Malcolm Matalka : >> Paul Stuffins writes: >> >>> Hi Everybody, >>> >>> Over the last couple of years I have tried many times to dump Debian = and >>> move to FreeBSD, but every time I have succumbed to Debian's charms a= nd not >>> stuck with FreeBSD. >>> >>> One of my main frustrations is upgrading installed ports, on Debian I= just >>> need to run "sudo apt-get update && sudo apt-get upgrade", but I have= never >>> been able to work out how to upgrade installed ports. >>> >>> As 2016 is fast approaching I want to finally move to FreeBSD and sta= y with >>> FreeBSD, so my question is, what is the best or most efficient way of= >>> upgrading all ports on a FreeBSD machine? >> Use 'pkg' instead. pkg update and pkg upgrade > pkg will update _packages_, not ports. =2E.. and a package is what you get by compiling a port. Yes, there is a= difference, but the two things are often conflated and it isn't worth muddying the waters by insisting on exactingly precise terminology from people new to FreeBSD. It is clear enough what they mean -- their aim is to get some software installed or upgraded. To the OP: try using pkg(8). You can use the default FreeBSD repositories pretty simply -- the config comes pre-canned with the system. All you need to do is bootstrap pkg(8), like so: # pkg bootstrap (Yes, you're using a command called 'pkg' to install another command called 'pkg'. Confusing, but if you read pkg(7) it explains the rational= e.) Now you can use pkg(8) to install software: # pkg install nginx which does what you expect -- downloads packages for nginx and everything nginx needs to be able to run and installs them. Unlike Debian, FreeBSD doesn't provide a pre-canned configuration or automatically start up the nginx service: you're expected to write your own nginx.conf and to update /etc/rc.conf to make nginx automatically start on reboots. You can upgrade anything that's out of date by: # pkg upgrade and you can remove a package you no-longer want by: # pkg delete nginx followed by: # pkg autoremove which will delete anything that was installed solely to allow nginx to work, and not also required by any other software you've installed since.= There's a lot more to pkg(8) than that short introduction, but really the install, upgrade and delete actions are enough to get you going. The biggest gotcha you will find with pkg(8) is when you need some software compiled with something other than the default set of port options. In which case, you'll probably want to start compiling that port yourself. But that's a question for another day. Cheers, Matthew --MbrKR09g29ug9AE9ONUEAt8sTAhfKRntg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJWZZ/OXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnyc4P/i/8aHHQGOblsGTG+CoiyOBa Oe+LXDOG453D5ZYKmSUGJmnx5pof2znX/HR+0IyNLc5HS3R4ctR2CXi4I7BKVGj7 ZIYRqFt8U/Z0ExITyVwjMJwvXUr2MoLjme3NZudz2MJGAfxBEhK1u9hnHxzvgPrg kyIQOg3Rn1+O6nR3RGu8kAZVzkNm+J9eyDybIxCrcnqyOO+i3tmtGoY8C0owczH+ P71Cby2v4W1Jhz8CkaN10/7Xh32s9ark6Lw16YEs/VkhulJAWPnq9OJx/Ookl7pQ Jlj4owptX3vIS0c/8eVmMplNDGSu7Tn36c2QfN7cb5vN7eN8GwEyifRpAcF7MEBz axqicG35wnlkVIno+QgI31MEm94DsWSbtYAObUILeNwLlLGemXgna6wGONygIngx QyCk16zTE9fwLMSrq5eR12zxuPcTEZP1moFc8AA0qhNfOV9/LOgSIWl1gRWFF1Jg 7EqPg7St3A4QzIOHsTV9Vnh8LRXtQvtnScNkGHTR8tWoEZW+1pzaa1zJD7aSnaNz 9vznR2dEnIOsQ61zgBoUiBJDZzHlSgVZBGdrZUYl0i9r/GB8RyJ8iOenk1MgcsYq N7kKCYYuIq9Vh4mt51hVWiR+KVZ5s5cvdB2TtNmbyLqLdapdZZ4FDumRCFlp1Iyx 5fOc6VCuSkUFLkXAyPH9 =U8gc -----END PGP SIGNATURE----- --MbrKR09g29ug9AE9ONUEAt8sTAhfKRntg--