Bug #6782

pkg update can trigger multiple updates per second

Added by Jeremy Porter almost 4 years ago. Updated almost 3 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


From Renato:
"I took a look on pkg src and did some tests. Every time a remote operation is executed (pkg search, pkg update, pkg upgrade, pkg install, …) it downloads meta.txz and repositories.txz, then it compares with local files and update if it’s necessary.

The only way of avoiding it is using -U or env REPO_AUTOUPDATE=false

So to mitigate the number of requests we have today is to re-work the way pfSense does pkg calls and use REPO_AUTOUPDATE where is possible. But it is not a trivial change, require lots of tests to make sure we are not breaking anything.

Probably the best start point to add it is packages widget."


#1 Updated by Renato Botelho over 3 years ago

  • Assignee set to Renato Botelho

I believe the responsible for so many queries is System Information Widget, that checks for upgrades every time it shows. Maybe a solution is to use -U there by default and add a flag to remove -u once or twice a day and also add a "Check now" link and user can click to force.

I'll make some tests and improve it.

#2 Updated by Renato Botelho almost 3 years ago

  • Status changed from New to Feedback

Many improvements were made to reduce the times pkg checks remote metadata. I looks much better now.

#3 Updated by Jim Pingle almost 3 years ago

  • Status changed from Feedback to Resolved

Seems fine now to me.

Also available in: Atom PDF