How to automatically reinstall old packages when I restore a configuration file into a new pfsense machine
-
So,
Tonight I tried to upgrade from 2.4.5 to 2.4.5_1 and somehow the upgrade did not work. My pfsense keeps on looping. So, I am planning to install fresh install (again) and hopefully loading the configuration file can automaticall reinstall all the missing packages. Is this done automatically when I upload the old configuration file and do I need to reinstall the needed packages first before loading the previos config file?
So far, my installed packages are openvpn and pftxxx (forgot the name) for information on traffic. Could be pftop, but I doubt it. OpenVPN is my main concern as I really hate to repeat the configuration.
Please help. I am flying naked now.
Thank you -
Yes the packet installation happens automatically during the restore process.
However, you don't need any package for OpenVPN to run as it is build into the base system. openvpn-client-export is only to export client config files.-Rico
-
Thank you. After a very thrilling rescue attempt, the new 2.4.5_1 gives me a notice that package reinstallation done. Oh boy, that one is a real rollercoaster for me. Thank you
-
@cinlung said in How to automatically reinstall old packages when I restore a configuration file into a new pfsense machine:
Is this done automatically
What about : never give the control to some system, as doing it yourself is better/faster/easier/saver/etc (what ever may apply for you).
This is what I would do : peek into the config file, an ordinary user readable xml file, and see what 'pfSense' packages you have.
Now, install pfSense, fire it up, do the minimal command line (console) interface assignment WAN and LAN and stop there.
Connect to the GUI, make the WAN work - if your WAN is using the default DHCP, this step isn't even needed.Now, visit the package manager. Just click install one by one all the packages needed - referenced in the config. When you see the green 'all is ok' bar, install the next package.
Do not set them up.Import your config.xml file. It will find all packages loaded and up to date, it will just configure them.
Restart and done.If something goes wrong, you'll be knowing exactly what went wrong (which package). The same thing would go wrong when you kick start without packages installed upfront, but then you would see what went wrong.
In a worst case situation you strip the package from the config.xml list (in the package list) and re import the config again.