Does pkg automatically download INDEX?
Naram Qashat
cyberbotx at cyberbotx.com
Mon Aug 4 02:10:31 UTC 2014
On 08/03/14 21:24, Kevin Oberman wrote:
> On Sun, Aug 3, 2014 at 1:27 PM, Naram Qashat <cyberbotx at cyberbotx.com
> <mailto:cyberbotx at cyberbotx.com>> wrote:
>
> On 08/03/14 15:53, Matthew Seaman wrote:
>
> On 03/08/2014 20:34, Naram Qashat wrote:
>
> Well, I've been using the command line arguments of "-voL '='", and
> looking at the man page for pkg-version, as far as I can tell, it
> shouldn't be downloading INDEX, since I do have INDEX-9 on my system.
>
>
> pkg(8) doesn't download or attempt to build an INDEX at all. It can use
> one if one happens to be already available, but not otherwise.
>
> Cheers,
>
> Matthew
>
>
> I'm at a bit of a loss, then. While I can't say for sure if pkg is doing
> something unintended, there seems to be something on my system that is
> downloading INDEX without my knowledge.
>
> My usual way of updating my INDEX is using p5-FreeBSD-Portindex to generate
> the INDEX file, and using that INDEX to update the files that portupgrade
> uses. I run that manually, so I have nothing that would do that for me
> automatically, to my knowledge.
>
>
> Thanks,
> Naram Qasha
>
>
> Are you doing anything between building the index and running "pkg version"? I
> can tell you that portmaster will download the "latest" index unless you use the
> --no-index-fetch option. I don't know about other tools, but it caught me by
> surpize.
> --
> R. Kevin Oberman, Network Engineer, Retired
> E-mail: rkoberman at gmail.com <mailto:rkoberman at gmail.com>
I'm not. In fact, I rebuilt the INDEX and did 'pkg version' and it didn't change
INDEX, which is correct from what Matthew said. But I left the system alone and
then, without having run any other commands, checked the timestamp of INDEX-9
again. It was changed, despite having not done anything in between. If there is
a way to find out when any process is attempting to modify a file, that would
probably help me narrow it down, but I'm not aware of anything that can do that,
so if anyone does know, that would be helpful. I had tried to check my
/var/log/all.log for anything but the only thing that even happened around the
time when INDEX-9 got changed was Postfix's anvil being called, which I doubt
would've caused the INDEX-9 to be downloaded.
Thanks,
Naram Qashat
More information about the freebsd-ports
mailing list