Solved Can't install package that's listed as available

Hi all,

I'm trying to install PHP 7.2 on a new FreeBSD 11.1 installation. I can see at https://www.freebsd.org/ports/ that php72 is indeed available, and there are many packages listed. However, when I do "pkg install php72", it fails with message "No packages available to install matching 'php72' have been found in the repositories".

pkg install php71 works fine though. Why isn't php72 working?

Thanks.
 
Ahh... I was able to figure out out. What I learned: by default, pkg pulls from the "quaterly" package feed, which is, as you might imagine, updated on a quaterly basis- so the php72 packages listed online were not yet available in that feed. The solution was to override the default configuration by redefining the FreeBSD primary package feed in /usr/local/etc/pkg/repos/FreeBSD.conf, except with url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" instead of the default url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly".

After making that change, did a pkg update and now am seeing php72 packages in pkg search. That's it!
 
Congrats ;)

My suggestion is to mark this thread as 'Solved' to others know that the issue has been fixed :)
If you wish to do so, then click on Thread Tools at the top of the first post, select Edit Title, and use the dropdown menu to select the green 'Solved' button.
 
Back
Top