From owner-freebsd-questions@freebsd.org Thu Nov 10 14:23:19 2016 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 2B08BC39B92 for ; Thu, 10 Nov 2016 14:23:19 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) (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 F33EF7AF for ; Thu, 10 Nov 2016 14:23:18 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-it0-f51.google.com with SMTP id q124so238132316itd.1 for ; Thu, 10 Nov 2016 06:23:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Wy4lP8tudO0XxqGhEPI49ASNyZUmFYdbpo6we7HZPWg=; b=NXnuReMUj1GTwhSo/2yiGMFjuzRruFfK24fqMGwYmWb+z5Q0QVgacZr2CpsOYOAdC9 zeogC31Vhq910XVmSc3ZBL31JO3HaTzSi3LvFdG/XjL18i2oYgVH4cSgMvRdE3zT+eK2 zYUIXdLmmHXmGio0sHSSSuB1Cco34/Jz9VCzUNI0qaIhJkJMquxAUAScoSx2dvBE/0Ps FkU9n7W2Fv3iNC3x6ECNjJLkvKB47v4QY1XLfWMig+ZGvHXbhsJsWnYEyLXWdhDFifPu pDNBPM3m/ilsQ1dxlKQXF71r/Rn7fGYvwDxPGVDRIlxmGAKHFkbl4jWc4jrLNIw+0Jgu fOmg== X-Gm-Message-State: ABUngvcJVo55gE7eWKWk2ILyvkXi66jH8h+XTmg/dLtvhvxMInM+kn+CJzyEV6bF12KBfQ== X-Received: by 10.107.132.76 with SMTP id g73mr5653881iod.227.1478784665679; Thu, 10 Nov 2016 05:31:05 -0800 (PST) Received: from WorkBox.org (63-231-162-22.mpls.qwest.net. [63.231.162.22]) by smtp.gmail.com with ESMTPSA id e35sm1999863iod.32.2016.11.10.05.31.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2016 05:31:04 -0800 (PST) Received: from localhost (WorkBox.org [local]) by WorkBox.org (OpenSMTPD) with ESMTPA id 8470aa40; Thu, 10 Nov 2016 07:31:04 -0600 (CST) References: <88a0fe8d-5333-8f82-668c-1405352c4e5e@kukulies.org> User-agent: mu4e 0.9.16; emacs 25.1.1 From: Brandon J. Wandersee To: "Christoph P.U. Kukulies" Cc: "freebsd-questions\@freebsd.org" Subject: Re: upgrading ports after system upgrade to 11.0 In-reply-to: <88a0fe8d-5333-8f82-668c-1405352c4e5e@kukulies.org> Date: Thu, 10 Nov 2016 07:31:04 -0600 Message-ID: <86k2cb1mxz.fsf@WorkBox.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2016 14:23:19 -0000 Christoph P.U. Kukulies writes: > I stepwise upgraded a 9.2 FreeBSD to 10.3 and now the last step is to go > to 11-RELEASE. > > After that will be acomplished I'd like to upgrade my /usr/ports tree, > that is, update all ports and build > and install those which had been actually built and installed. > > > What would the commands be to achieve this? That would all depend on how you fetched your ports tree, and how you prefer to install ports. The /Handbook/ has a chapter on the two methods of maintaining the ports tree and basic information on installing and maintaining ports. If you don't have many (or any) custom ports then I'd suggest just using pkg(8) to upgrade everything you have installed. If you have any (or many) custom ports then you can worry about them later; if you don't need custom ports, stick with packages. ports-mgmt/portmaster and ports-mgmt/portupgrade have been popular stand-alone tools for managing ports; ports-mgmt/synth and ports-mgmt/poudriere have become more popular, and can be used to build a list of ports into a local package repository from which you can upgrade. Poudriere is probably the closest thing to an "official" FreeBSD ports management tool, since it's used to maintain the official package repository; Synth is probably the better choice if you're managing a single machine. Also, I personally use `pkg query -e '%a = 0' %o > pkglist` to keep an alphabetical list of all explicitly installed ports. Makes it easy to just uninstall and reinstall everything if there's a need for a major cleanup or massive upgrade. -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ----------------------------------