Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2014 21:25:57 -0500
From:      Alejandro Imass <aimass@yabarana.com>
To:        Adam Vande More <amvandemore@gmail.com>
Cc:        "William A. Mahaffey III" <wam@hiwaay.net>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: pkg versions don't match
Message-ID:  <CAHieY7RZ2X9Nn5E4Fx7nfRq7HsLkmb8AgYaSRs-rsBAxXVUS4Q@mail.gmail.com>
In-Reply-To: <CA%2BtpaK0Z4WhXdz5ZhAEo=5ea-Q157h22c11y=2UGpKeaqX9z6w@mail.gmail.com>
References:  <CAHieY7TwrW6y7dO1mFCEJgmt923_0ci1s5VJbo0XzDG5H0e7pQ@mail.gmail.com> <CAGZBXN_1P=eHm8FKsCyzT%2BtY8cF05Fi4O5-6FOcAxi3ckZp1Mw@mail.gmail.com> <CAHieY7Sct5KOycXwY5zV=DQkOHQ79Q2tRPYWQjn2XhsLpdQfWw@mail.gmail.com> <54941E41.3040807@hiwaay.net> <CAHieY7RRwX8a9kOHuyboOPH2ZYmHFuK6xLa9MSd-TAT15Zey4w@mail.gmail.com> <CA%2BtpaK0Z4WhXdz5ZhAEo=5ea-Q157h22c11y=2UGpKeaqX9z6w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 20, 2014 at 3:20 PM, Adam Vande More <amvandemore@gmail.com>
wrote:

> On Sat, Dec 20, 2014 at 1:57 PM, Alejandro Imass <aimass@yabarana.com>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHieY7RZ2X9Nn5E4Fx7nfRq7HsLkmb8AgYaSRs-rsBAxXVUS4Q>