Install PKG in FreeBSD 12.2, is there a way to do this?

Hi, i need to install pkg in a jail with FreeBSD versión 12.2


Code:
[ICODE]root@PostgreSQLTESTING:/usr/ports/ports-mgmt/pkg # cd /usr/ports/ports-mgmt/pkg[/ICODE]
[ICODE]root@PostgreSQLTESTING:/usr/ports/ports-mgmt/pkg # make install clean[/ICODE]
[ICODE]make: "/usr/ports/Mk/bsd.port.mk" line 1191: UNAME_r (13.1-RELEASE-p9) and OSVERSION (1202000) do not agree on major version number.[/ICODE]
[ICODE]root@PostgreSQLTESTING:/usr/ports/ports-mgmt/pkg # pkg[/ICODE]
[ICODE]The package management tool is not yet installed on your system.[/ICODE]
[ICODE]Do you want to fetch and install it now? [y/N]: y[/ICODE]
[ICODE]Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/legacy, please wait...[/ICODE]
[ICODE]pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:amd64/legacy/Latest/pkg.txz: Not Found[/ICODE]
[ICODE]A pre-built version of pkg could not be found for your system.[/ICODE]

I tried to do it in those two ways but I had no results.

I cant update the freebsd version because i need to install psql 12
 
Support for 12.2 ended 3 years ago (March 2022), support for PostgreSQL 12 ended in November 2024, and the port was removed at the end of December 2024.

databases/postgresql12-server

(Hint, the ports tree is version controlled with git, you can checkout a ports tree from any point in time)
 
if previous answer is enough -- packages for unsupported OS verions is absent. And you ought to build all from ports. For appropriate verion of package tree, as for my, best to select branch or tag correlating with time of OS release: branch 2022Q1, or tag (I prefer tag, it's obvious for this situation) release/12.2.0. You can try some later branch, but in my experiments it's was failied (yep, for older release, 9.3, it looks like there some changes was in makefiles, so all builds fails). And it should be build in jail. And, it seems unavoidable to set jail os version, becase some makefiles rely on it. Like this:
Code:
        osrelease="12.2-RELEASE";
        osreldate="1202000";
I have a try with poudriere since man says that it can build packages for older releases, but it fails for my, -- it seems poudriere do not set os version for jail...
 
Back
Top