Offline Package Management
-
Hi All,
I've just finished a good hours worth of googling and a small amount of testing, is anyone able to help installing packages offline? My organisation is assessing pfsense as a security appliance in offline networks as a vpn, firewall and proxy. (squid/haproxy).
I've followed some advice found in this post:
https://forum.netgate.com/topic/139784/install-pfsense-pkg-openvpn-client-export-package-on-isolated-environment/10
I downloaded a package (open-vm-tools) from https://files00.netgate.com/pfSense_v2_4_4_amd64-pfSense_v2_4_4/ and attempted to install it using 'pkg install blag.txz' but got a raft of errors:Updating pfSense-core repository catalogue... pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.dqlite) failed: No such file or directory pkg: https://pkg.pfsense.org/pfSense_v2_4_4_amd64-core/meta.txz: No address record repository pfSense-core has no meta file, using default settings pkg: https://pkg.pfsense.org/pfSense_v2_4_4_amd64-core/packagesite.txz: No address record Unable to update repository of pfSense-core Updating pfSense-core repository catalogue... pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.dqlite) failed: No such file or directory pkg: https://pkg.pfsense.org/pfSense_v2_4_4_amd64-core/meta.txz: No address record repository pfSense-core has no meta file, using default settings pkg: https://pkg.pfsense.org/pfSense_v2_4_4_amd64-core/packagesite.txz: No address record Unable to update repository of pfSense-core Error updating repositories!
I was expecting it to complain about missing dependancies but it didn't get that far instead complaining it can't get to it's repo, this is expected as it's never going to get access to the internet.
I don't mind having to download all the dependancies but at this stage I don't know what they are.Alternatively can you host your own repo and point the appliance to it? Does anyone know roughly how large it is?
Thanks in advance.
-
Try
pkg add blag.txz
-
Cool that's given me dependacy requirement!
-
To help anyone else doing this, I suggest downloading the entire contents of https://files00.netgate.com/pfSense_v2_4_4_amd64-pfSense_v2_4_4/All/ as it's only 400~Mb and copying it onto your pfsense appliance.
When you run pkg add blah.txz it'll automatically install the dependancies required from the same directory.I've noticed that the packages installed aren't showing up in the GUI or apparently running (open-vm-tools) but I've made a seperate topic:
https://forum.netgate.com/topic/145351/cli-installed-pfsense-packages-not-showing-up-in-gui -
This post is deleted!