Date: Mon, 7 Dec 2015 15:03:36 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Migrating to FreeBSD from Debian Message-ID: <56659FC8.8020904@FreeBSD.org> In-Reply-To: <CAA2O=b_p-HPx%2BpPyFOgJMe02d5xrJe_aXJ8ZG9z%2BdHZCNwh91Q@mail.gmail.com> References: <CAO-kBwffucnPVphm_ajbtAejjFiAv_Cp%2Bv7jZ-xCTX7YTqk36w@mail.gmail.com> <86poyiuynx.fsf@gmail.com> <CAA2O=b_p-HPx%2BpPyFOgJMe02d5xrJe_aXJ8ZG9z%2BdHZCNwh91Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mmatalka@gmail.com>: >> Paul Stuffins <freebsd@ravexdata.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56659FC8.8020904>