How to INSTALL the packages of a FreeBSD version (11-RELEASE) went EOL.

Forum rules regarding unsupported versions:

There are no repositories providing binary packages for a FreeBSD version that is EOL'd for more than two years.

Update your system to a supported FreeBSD version.
 
I can't. If you want to know why,give a look at this post :


basically I can't use a newer version of the compiler because it will give to me the error reported there :

Code:
ld: error: duplicate symbol: yylloc
>>> defined at dtc-parser.tab.c
>>> dtc-parser.tab.o:(yylloc)
>>> defined at dtc-lexer.lex.c
>>> dtc-lexer.lex.o:(.bss+0x58)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

but I'm sure that it will work with FreeBSD 11. Or maybe I can use,on the 13,the compiler used on the 11. But I have really no idea about how to do that.
 
Let me check whether I got this right: You have some software you want to use/compile, but you get a compile error when compiling it on 13.2. Now you try to setup an 11 machine and you need packages/ports to install the tools to compile it there? If so, yes. Definitely what cracauer@ said.
 
I'm trying to compile the (patches) created by Julien Grall and to recompile the kernel that will allow to create a FreeBSD domU which will run on arm v7 on my ARM Chromebook under Xen. I tried to do recompile his code with FreeBSD 13.2,but it seems too new. You know,that code is very old. He created it on the 2014. So it should be compiled with FreeBSD 10 or 11. Not sure if 12 is good. The tools I'm trying to install on 11 are intended to use it in a comfortable way. For example I would like to install sshfs (such as different tools that I will need while I do the work) to enable a communication channel between my host os (FreeBSD 13) and FreeBSD 11 installed as vm with Bhyve. THis will help me to transfer the necessary files between the two operating systems. Unfortunately I didn't find sshfs on 11. It is not present neither between the packages nor between the ports.
 
You will be out of luck for packages, but download a Ports tree and checkout an older revision of it and see if you can build what you need.
Just know that it is an old revision and external references (e.g. code repositories) may have changed or disappeared completely, also that since everything is old there could be known vulnerabilities that have been addressed in later versions.

An alternative: if you have another machine with the desired packages, you may be able to copy the correct files from /var/cache/pkg/ to your new machine. I'm not sure if this will work, and it obviously relies on you having to have installed them previously on another machine.
 
So it should be compiled with FreeBSD 10 or 11. Not sure if 12 is good.

Of course sources for kernel and userland and ports trees[*] for all old versions are still available in original releases on the main and some mirror ftp sites, though old package repositories are not.

[* Whether ports' distfiles are still available, or at the same place, is another matter.]

FreeBSD 12 goes EOL on 31st December, so if it's of any use you have at least 5 weeks to fetch packages for it also.
 
Hello.

I've installed FreeBSD 11.0-RELEASE as a bhyve VM. I'm tryng to INSTALL the packages installed on the system,but it refuses to do it. Infact the error is :

http://pkg.freebsd.org/FreeBSD:11:amd64/quarterly/packagesite.txz : not found.

probably because it is EOL. I want to know if,like Linux,there still be an old repository that I can use to upgrade the packages of FreeBSD 11. Thanks.
I found this but it stops afer 9.2...

 

No practical use; these are old style packages used by Jordan Hubbard's original (venerable) pkg_add(1), pkg_create, pkg_delete, pkg_info etc utilities.

9.2 was the very last of these, as the new pkg(8) suite then known as 'pkgng' was required after then. I know as I still have a working 9.3-STABLE system with remnants of both systems.
 
I'm trying to compile the (patches) created by Julien Grall and to recompile the kernel

We talked about this before. You should let us know earlier when you do mess with things like kernel patches from the stone age.

Anyway. As mentioned your only way to get what you want is check out an old state of the ports tree, and hope that the distfiles are still reachable. There is a specialized tag in the ports tree specifically for that purpose, `11-eol`.
 
There is a specialized tag in the ports tree specifically for that purpose, `11-eol`.
Interesting! Does that mean that is the last commit usable for RELEASE-11 on the ports-tree? Are there also other "special tags" usable and how can they be listed?

Do you mind giving a git example command for using it? Thanks!
 
Interesting! Does that mean that is the last commit usable for RELEASE-11 on the ports-tree? Are there also other "special tags" usable and how can they be listed?

Do you mind giving a git example command for using it? Thanks!

Code:
cd /usr/ports
git checkout 11-eol

Ignore the "warning" about detached head, that is the expected state.

It isn't necessarily the last state that works, but it is the last state taken while 11 was in maintenance.
 
Why in Linux the last state that works does have everything included including the packages ? Can't FreeBSD do the same ?
 
Anyway,I'm going to add inside the img the files I want following this procedure,that I find easier than the other ones.

Code:
# mdconfig -a -t vnode -f FreeBSD11.img -u 0
# mkdir /mnt/freebsd

#  ls /dev/md*
/dev/md0        /dev/md0p1      /dev/md0p2      /dev/md0p3      /dev/mdctl

# gpart show

=>       40  419430320  md0  GPT  (200G)
         40         24       - free -  (12K)
         64     409600    1  efi  (200M)
     409664  410632128    2  freebsd-ufs  (196G)
  411041792    8388567    3  freebsd-swap  (4.0G)
  419430359          1       - free -  (512B)

# mount -t ufs /dev/md0p2 /mnt/freebsd
# copy files from the host os to the 11 image fle
# umount /mnt/freebsd
# mdconfig -d -u 0

and I will boot again 11 with bhyve.
 
I wanna make you another question. I want to experiment ; I want to try to install the packages I have on my 13.2 to 11. So,I do :

mario@marietto:/var/cache/pkg # cp * /mnt/freebsd/var/cache/pkg

now,according with this post : https://forums.freebsd.org/threads/how-to-install-pkg-offline.68115/

to install a package offline,I should do :

# pkg add <package>.txz

point is that I don't have txz files,but only pkg files :

.......
zstd-1.5.2_1.pkg
zstd-1.5.2_1~410105237d.pkg
zstd-1.5.4.pkg
zstd-1.5.4_2.pkg
zstd-1.5.4_2~1be8bac274.pkg
zstd-1.5.4~481da04299.pkg
zxing-cpp-2.0.0.pkg
zxing-cpp-2.0.0~dc3740466c.pkg
zxing-cpp-2.0.0~f922ed4b2a.pkg
zxing-cpp-2.1.0.pkg
 
What does file package.pkg return?
Did you try pkg add package.pkg?
Did you try to rename the extension?
Is it not resolved since the change?

pkg.conf()
COMPRESSION_FORMAT: string
Set the default compression format: tzst, txz (default),
tbz, tar. Default: per pkg developers.

I want to try to install the packages that I have on my 13.2 to 11.
You may encounter ABI changes and dependencies.
 
I think pkgs from a 13.2 system would be built against 13.2, with all corresponding versioning.
A 13.2 system by default has compatibility with previous versions (not sure how far back) so that a 13.2 system should be able to run an executable from say a 12 system.

Some packages that are scripts may be able to run, but there may be checks in the pkg command to prevent installing incompatible binary packages.

As others have said, your best chance is downloading the ports tree and building everything from source on the 11 system. You may not need to actually use the 11-eol version of the tree, but "latest" version of the ports tree may not build on 11.
 
… if,like Linux,there still be an old repository that I can use to upgrade the packages of FreeBSD 11. Thanks.


See:

 
to install a package offline,I should do :

# pkg add <package>.txz

point is that I don't have txz files,but only pkg files :

.......
zstd-1.5.2_1.pkg
zstd-1.5.2_1~410105237d.pkg
zstd-1.5.4.pkg
zstd-1.5.4_2.pkg
zstd-1.5.4_2~1be8bac274.pkg
zstd-1.5.4~481da04299.pkg
zxing-cpp-2.0.0.pkg
zxing-cpp-2.0.0~dc3740466c.pkg
zxing-cpp-2.0.0~f922ed4b2a.pkg
zxing-cpp-2.1.0.pkg

See my posts explaining this in
Post in thread 'Intel Alder and Raptor Lake support'
 
What does file package.pkg return?
Did you try pkg add package.pkg?
Did you try to rename the extension?
Is it not resolved since the change?

Do you mean the change in naming package extensions?


[aside: you had the following text in an unlabeled box that disappeared when quoted; I've had to cutnpaste it back here. How did you create that box?]
~~~
COMPRESSION_FORMAT: string
Set the default compression format: tzst, txz (default),
tbz, tar. Default: per pkg developers.
~~~

This is unfortunate, in that it refers to the compression format which is indeed txz (xz compressed tar archive), but the extension of pkg's files was changed from .txz to .pkg sometime before 12.3-RELEASE, yet this manpage and also pkg(7) itself still specify .txz as the extensions in the synopsis!

You may encounter ABI changes and dependencies.

Exactly so :)
 
For a 32-bit Chromebook? Is it worth it?

Lenovo T430s runs FreeBSD perfectly, and 64-bit, you can probably pick it up for $100 USD, depends how much you value your time trying to carve stone wheels for a brand new car.

Anyway, I guess you could try building from ports on the 11.0 release version. Unleash the mayhem, so to speak.
 
Back
Top