From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 11:01:08 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 898EBE52 for ; Fri, 3 Oct 2014 11:01:08 +0000 (UTC) Received: from rgout03.bt.lon5.cpcloud.co.uk (rgout03.bt.lon5.cpcloud.co.uk [65.20.0.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1B975B7D for ; Fri, 3 Oct 2014 11:01:07 +0000 (UTC) X-CTCH-RefID: str=0001.0A090201.542E806D.018D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-Junkmail-Premium-Raw: score=28/50, refid=2.7.2:2014.10.3.94518:17:28.394, ip=31.50.55.86, rules=__HAS_FROM, __PHISH_FROM2, __FRAUD_WEBMAIL_FROM, FROM_NAME_ONE_WORD, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __HAS_MSGID, __SANE_MSGID, __IN_REP_TO, __HAS_X_MAILER, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_WWW, __URI_NO_PATH, __STOCK_PHRASE_7, __SUBJ_ALPHA_NEGATE, __FORWARDED_MSG, BODY_SIZE_3000_3999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, __URI_NS, SXL_IP_DYNAMIC[86.55.50.31.fur], HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, __PHISH_FROM, __PHISH_SPEAR_STRUCTURE_1, RDNS_SUSP, __FRAUD_WEBMAIL, BODY_SIZE_7000_LESS X-CTCH-Spam: Unknown Received: from elena.home (31.50.55.86) by rgout03.bt.lon5.cpcloud.co.uk (8.6.122.06) (authenticated as afmcc) id 542DA2870018E6DE for freebsd-questions@freebsd.org; Fri, 3 Oct 2014 11:54:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btcpcloud; t=1412334068; bh=lP2J+wxMvVosT5GlzLd2WpupLMt/g3fiKVjKcUVbJVk=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:MIME-Version; b=kWhM6go7XtCZtUZ7Mw2Wn3o2EcyP/zxGIS+UUxiUAULSb07c9dPRF9NuS2ee8Jx/62IFrr0P/j0qT1SWY28WL0umuTd9bPqhA15O+aeYgSEQ/Jc+9+nHhC3EfdhivKmtF5dcnuDOTXKDPn4+WLupR1Bg3NBe0VYgxrnFKqqUTO0= Date: Fri, 3 Oct 2014 11:54:36 +0100 From: TonyMc To: freebsd-questions@freebsd.org Subject: Re: pkg upgrade question .... Message-ID: <20141003115436.70a5446a@elena.home> In-Reply-To: <542D601F.1030104@hiwaay.net> References: <542D601F.1030104@hiwaay.net> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 11:01:08 -0000 On Thu, 02 Oct 2014 09:24:31 -0500 "William A. Mahaffey III" wrote: > > > .... I converted from using linux-f10 to using linux-c6 for linux > compatibility earlier this week. There were no linux-c6 pkg's, so I > used ports to do that install, & I also 'pkg delete'-ed all of > linux-f10 in the process. I just did a 'pkg upgrade -y' & it deleted > all of the installed linux-c6 stuff & reinstalled linux-f10 !!!! I > would like to believe this was pilot error, but that is getting to be > a bit of a stretch .... I can & will manually clean up the mess, but > WTF is going on here w/ pkg ? That behavior is 100% counter-intuitive > to me, bug ? > > Dear William, this was indeed pilot error. You should get into the habit of reading /usr/ports/UPDATING. The relevant entry states (22 Sep.): "The complete drop-in replacement linux-c6 port infrastructure is in ports and will shortly replace the current linux-f10- ports as default." The "will shortly" is key there. The ports system makes software available for you to compile and install. You can start using linux-c6 ports before they become the default, but you must understand that that is your decision, and by doing so you are departing from "the default". If you then try to "pkg upgrade" pkg will install the most recently available packages for the ports you have installed. Since there are no linux-c6 packages available yet (though presumably it will not be long), pkg resolved your software dependencies on linux emulation using linux-f10 packages, which were available. If you had waited until linux-c6 became the default, you would have been fine. I have read a number of your messages over the last few weeks and it seems to me you still have a problem grasping the relationship between ports and packages. (I hope I have not misunderstood you.) You need to understand that ports are recipes for configuring, building and installing software (usually involving compilation, linking and installation), while packages are recipes for adding already-configured-and-built software to your system. The "already" part of that description means that someone, somewhere has to have done the configuration, compilation and linking steps. That takes a finite time. When multiplied by the number of available ports (more than 20,000) you can see why the availability of packages lags behind the availability of the recipes in the ports tree. I hope that helps. I suggest you choose between ports and packages (there are exceptions for some programs, for which you really need non-default options). If you prefer to use the newest version as soon as it becomes available, and you can live with the work of choosing configuration options, building and installing, you need to use ports. But if you can wait a few days and accept the default options, pkg upgrade will make your life a lot easier. Just as an aside: you seem very keen to use linux emulation on FreeBSD. Why is that? What are you missing that requires the compatibility layer? Best, Tony