From owner-freebsd-questions@FreeBSD.ORG Sun Dec 21 02:47:50 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 893F4927 for ; Sun, 21 Dec 2014 02:47:50 +0000 (UTC) Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44211215D for ; Sun, 21 Dec 2014 02:47:49 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id m20so2237043qcx.31 for ; Sat, 20 Dec 2014 18:47:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=P2AwQItTNBJLHAxUGgeOgp1JoLwDM/VNt9b1X2UjpPY=; b=D1p2v9f9AjiAARLzzp2bXG8v7hxWXOWZ7lzUauxZp/bVvFXQRlXEAzUgapQpFn3oR7 koclNIm1FFJLJSYKLs1gVomRAvc11BRkXaQAn7hQli84knKN7MFtUAQjgIpiIT0ut/mQ Kw9iWISNS41w1xZs4y2DVXIs/RkgWP4vsjym49zkcMYAZCgkbCi2PyokJ1GmVU+ZVHjz jIO72hpA/xHNBXZfaSmzeYK7r4vFN8npCBEwnPtiKXmfL8I0PFkl7N9pWZHCEWnW7iJC 7i3K6VioL4ANhYl1nWNsGBNlvmYwZnzEZwyU+CPbqrDO9o/LBRW5uTUOQc6/5WZgPIqX LJSg== X-Gm-Message-State: ALoCoQnSKAw52IqFp1Mo7fY1klXsYBUWvXVnQSARS2yluJOwQML4Inpgcoxt/91ZFOnYxG8Q05in MIME-Version: 1.0 X-Received: by 10.224.50.75 with SMTP id y11mr26417437qaf.89.1419128757753; Sat, 20 Dec 2014 18:25:57 -0800 (PST) Received: by 10.140.19.17 with HTTP; Sat, 20 Dec 2014 18:25:57 -0800 (PST) In-Reply-To: References: <54941E41.3040807@hiwaay.net> Date: Sat, 20 Dec 2014 21:25:57 -0500 Message-ID: Subject: Re: pkg versions don't match From: Alejandro Imass To: Adam Vande More Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "William A. Mahaffey III" , FreeBSD Questions 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: Sun, 21 Dec 2014 02:47:50 -0000 On Sat, Dec 20, 2014 at 3:20 PM, Adam Vande More wrote: > On Sat, Dec 20, 2014 at 1:57 PM, Alejandro Imass > wrote: >> >> > make that 'pkg update -f' instead .... most options are specific to the >> > command & occur after it .... $0.02 .... >> > >> > -- >> > >> > >> Thanks guys pkg update -f worked and fixed the problem. The handbook >> documentation pkg definitively needs work or there is some other pkg >> hidden >> manual besides the man page and the handbook? > > > I don't know of any hidden ones, but the standard pkg manual has the > customary 'see also' section for more in-depth information. > > Yeah but something doesn't seem quite right here. The option -f "force" to check origin versions seems a bit obscure. If -f is needed for update to actually check remote for update then it should be more prominent. The manual clearly states: pkg update is used for updating the local copy of the repository catalogues from the remote package repository databases. Updates to catalogues are normally downloaded only when the master copy on the remote package repository is newer than the local copy. So it _seems_ that update does not actually check remote pkg repository without the use of -f Assuming -f is needed to go and actually fetch the new versions then when a package is not found on remote, it should be prominent in handbook page, the main man page, or at least hint the user to try -f when "not found". Best, -- Alejandro Imass