From owner-freebsd-questions@freebsd.org Thu Sep 26 17:16:58 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5EF6212DC63 for ; Thu, 26 Sep 2019 17:16:58 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 46fM6d3PRFz4Ykm for ; Thu, 26 Sep 2019 17:16:57 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id BD8954E606 for ; Thu, 26 Sep 2019 12:16:56 -0500 (CDT) Subject: Re: ports and packages installed on one system, how to make pkg only To: freebsd-questions@freebsd.org References: <20190926151216.GB4027@bastion.zyxst.net> <20190926162927.GC4027@bastion.zyxst.net> From: Valeri Galtsev Message-ID: Date: Thu, 26 Sep 2019 12:16:56 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190926162927.GC4027@bastion.zyxst.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46fM6d3PRFz4Ykm X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [-1.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none]; NEURAL_HAM_MEDIUM(-0.91)[-0.909,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.989,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.01)[country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[70.20.135.128.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2019 17:16:58 -0000 On 2019-09-26 11:29, tech-lists wrote: > Hello Matthew, > > On Thu, Sep 26, 2019 at 04:59:27PM +0100, Matthew Seaman wrote: > >> A pkg is what you get from compiling a port.  Once the port is installed >> it's a pkg and there's no functional difference from a pkg installed >> from one of the package repositories. Some of the ports are not in prebuilt pkg repository (maia will be the one I can name). >> >> Or, in other words, just update your machine from the pkg repos. except for ports that are not in pkg repository. Sometimes they have to be rebuilt, if the dependency changes (to the level of braking things). >>  It >> will replace anything that's out of date, no problem.  There's no >> particular need to force an update on all packages -- if it's already >> there and working OK, then my inclination would be to leave it be. > > What's of particular concern for me is that the machine had this in its > /etc/make.conf when it was building it's own ports: > > DEFAULT_VERSIONS+=python=2.7 > > I've since removed it. > > Since then, the machine has been brought to 12R-p10 and I've made a > poudriere Great, and that is my way too to deal with whatever needs configuration different from what pkg is built with (apache with LDAP authentication and mailman with postfix instead of sendmail can be examples). Valeri > instance for it on different hardware which has nothing special in its > own make.conf. I fed it a ports list obtained on the client through > *portmaster --list-origins | sort -u | tee portslist.txt*, transferred > that to > poudriere and it built the ports, and all the flavoured python ones were > py36-* > > So, if I *pkg upgrade -f* on the client (which now knows to use my > poudriere > instance), would it be reasonable for me to expect all py27* to be > upgraded to py36*, without stuff breaking? > > thanks, -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++