2

As an example, when I want to list all installed packages of php70 I can just enter:

pkg info php70\*

But I cannot use the wildcard in this for pkg upgrade:

pkg upgrade php70\*

When I do get this message:

pkg: php70* is not installed, therefore upgrade is impossible

What is the correct way to accomplish this?

  • 1
    pkg upgrade -g php70\* but for some reason with glob pkg suggest to install new packages matched by pattern. May be this is a bug. – citrin Dec 15 '16 at 19:11
  • I am quite sure it used to work, but sometimes memory plays tricks in you. – Lexib0y Dec 15 '16 at 20:00
  • After reading your comment for the second time,,, maybe they disabled the wildcard because of this issue. (or feature) – Lexib0y Dec 15 '16 at 20:10
  • 1
    You might consider using xargs when and if wildcards and regular expression are not supported by the utility. – user246890 Jan 27 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.