OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: NorbertK on June 07, 2024, 10:13:36 AM

Title: How to sideload FreeBSD packages
Post by: NorbertK on June 07, 2024, 10:13:36 AM
To install packages  from the FreeBSD universe to your opnsense box the script from this quite verbous medium article works.
https://medium.com/@mihakralj/the-direct-route-installing-freebsd-packages-on-opnsense-d002ac0c56b8 (https://medium.com/@mihakralj/the-direct-route-installing-freebsd-packages-on-opnsense-d002ac0c56b8)

It can be used like this:

./opnsense_sideload.sh  <packagename>


I attached the script for convenience, make shure it has LF as Linfeed.

HTH
Norbert
Title: Re: How to sideload FreeBSD packages
Post by: franco on June 07, 2024, 10:23:51 AM
Thanks for sharing.

The process is still prone to the same issues. If you must just edit

/usr/local/etc/pkg/repos/FreeBSD.conf

And set "enabled: yes"

Do your pkg install and then change it back.

And to repeat, the same problems will exist with pulling in bad dependencies, newer versions, incompatible package managers, etc. This is unavoidable.


Cheers,
Franco
Title: Re: How to sideload FreeBSD packages
Post by: NorbertK on June 07, 2024, 11:35:57 AM
Much simpler indeed. And of course you are right about the possible consequences.