From owner-freebsd-questions@freebsd.org Mon Dec 7 15:40:29 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 5C8C99B942C for ; Mon, 7 Dec 2015 15:40:29 +0000 (UTC) (envelope-from paul.stuffins@ravexdata.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7CE3177A for ; Mon, 7 Dec 2015 15:40:28 +0000 (UTC) (envelope-from paul.stuffins@ravexdata.com) Received: by wmuu63 with SMTP id u63so145667283wmu.0 for ; Mon, 07 Dec 2015 07:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravexdata-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=QqLSiorlAfhTGcXOfpHxdwDd3SURow56e11ts/686bY=; b=vnfTHMunPGSCLy5R01XcmTjHwf3DIYI9k5xnC1w2opBCP8+g0lKG8XZVf2WLx9NBdU t2Uxb4PnxqybA0rfg6rXUmo2FnXC+oPIAfrtsEO5IawFptF8Ij6K1jGwSgfm6OSIaURM 8ma8JohEs+LQRFBKJbDeYS3EH6Gly20GIaKG4SGcYIBW4P29I9zfHdJGcSh48uN53Sjc 5+sB+7FvNOlLK16D69rd2I7OE0BdvUP6O8tIa8fIGeyBigPbhEZ+JPZE0rtpJyIVL4TG Y3iwfvVazkZOAVVRRCnuY193ybOnQWtKxEZxkE/tq69Nb3sTW2F5RX5Hw6aF4QA+DGN7 TSdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=QqLSiorlAfhTGcXOfpHxdwDd3SURow56e11ts/686bY=; b=YJtY++KBHxDbOSKBaswKUQYjZ1Fob3BWuAtdB15CbnmEBF3Ao00/8pGmiiP+9xalkp b5UIYi9H02+WTBbUwQ3lgL53R9xM3qos/jEgemDX7Cws22UtSSAZXELtH//K9xLAOFnW OzFeC2oN+7RBPLUxAokcWs8uVtGjshFe1DxfJBJHBHTAUQyO7pmjiH+alIJ3tAufFwRB VVwQ65e6G3WrEqkmbStH9WA6POVBZ/4QHdaWYfH/SyPycuIWUN7sxfuUJXu5hInbruSY 8z4eK2v6eqOTTKdNzqYYYkv+2wgR5mu9EncftQOsNkW/VwcofNsNsazuWU6nsKscLUyR 5aqA== X-Gm-Message-State: ALoCoQl0iIvuzbHn5doRlvplRdsle7WgUBwZ6kCjoXHMTHAmU+zw19dd9FUHNEbygoSyW0SfNlAu X-Received: by 10.194.78.212 with SMTP id d20mr36658701wjx.70.1449502827453; Mon, 07 Dec 2015 07:40:27 -0800 (PST) Received: from [10.34.1.6] ([104.238.169.152]) by smtp.gmail.com with ESMTPSA id s11sm17307035wmb.14.2015.12.07.07.40.26 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Dec 2015 07:40:26 -0800 (PST) Subject: Re: Migrating to FreeBSD from Debian To: freebsd-questions@freebsd.org References: <86poyiuynx.fsf@gmail.com> <56659FC8.8020904@FreeBSD.org> From: Paul Stuffins Message-ID: <5665A867.2090707@ravexdata.com> Date: Mon, 7 Dec 2015 15:40:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <56659FC8.8020904@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:40:29 -0000 On 07/12/2015 15:03, Matthew Seaman wrote: > 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 and 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 stay 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. > ... 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 rationale.) > > 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 > > Hi Matthew, Thanks for the explanation, I will have a look at using pkg. Thanks Paul