Install package from older release
-
Dear pfSense users,
I'm currently running pfSense CE v2.6.0 version.
I'm having a problem with dynamic DNS and Namecheap. I'm found a patch that solve the issue, but I need to first install a patch using the following command:
opnsense-patch -c plugins 4b3abbf
However that command isn't found on my system. So I need to install the package
System_Patches
. When I want to install this patch, I'm getting that error:WARNING: Current pkg repository has a new PHP major version. pfSense should be upgraded before installing any new packag
I'm not ready yet to upgrade my pfSense to 2.7.0. Also, I've read that this upgrade may be a bit complex and need to remove all installed packages.
If there a way to get that package on my current version? Or if there a way to get that patch installed without having the
System_Patches
package installed?Thank you very much for your help.
Best Regards,
Yanick -
@yquirion said in Install package from older release:
opnsense-patch -c plugins 4b3abbf
Uhm.... which software are you running?
-
J jimp moved this topic from Problems Installing or Upgrading pfSense Software on
-
@rcoleman-netgate I'm running pfsense v2.6.0 and I want to install that patch thag is also for 2.6.0. However, I need to add a package, and it don't let me do it because version 2.7.0 is available and I'm not ready yet to upgrade to that lastes version.
Regards
-
That is a patch against opnsense using their patch command. The command doesn't exist in pfSense and that patch probably doesn't apply anyway.
But you can install packages in pfSense 2.6. Just make sure the update branch is set to 2.6 (previous version) in System > Updates.
Steve
-
@stephenw10 said in Install package from older release:
That is a patch against opnsense using their patch command.
^^^^^^^
-
-
@stephenw10 Well I was really mixed up here! I tought I was into a thread talking about pfsense. Now I know that opnsense is not pfsense!!!
Sorry guys for that confusion, but it ois strange I have the same behaviour with pfsense!
At least now I can install packages from 2.6.0!
Regards,
Yanick -
The patch for #12816 is in the recommended patches list for 2.6. And included in 2.7.
-
@stephenw10 Thanks again! That worked!
Have you updated to 2.7.0? If so, do you had to remove all you installed packages first?
Thanks,
Yanick -
@yquirion said in Install package from older release:
Have you updated to 2.7.0? If so, do you had to remove all you installed packages first?
It is recommended to always remove packages before upgrading.
-
Yup, that ^. Though I have updated numerous systems without removing packages and not hit any issues.
If you're running Squid, Squidguard or FRR I would definitely remove them before upgrading.
-
@stephenw10 The one I'm more concerned is pfBlockerNG-devel. I don't want to lose my configs. Here are all the packages I'm using:
If I need to remove them, will I lose all my configuration parameters?
Regards,
Yanick -
@yquirion said in Install package from older release:
Have you updated to 2.7.0? If so, do you had to remove all you installed packages first?
To jump in, since I've answered a few questions recently about losing package settings, normally uninstalling a package does not remove its settings, for the purpose of upgrading. A few have a checkbox to purposefully remove the settings to clean out the config file. The only problem of which I'm personally aware is a bug in FreeRADIUS where it doesn't read in the config unless someone has previously clicked the Save button on its settings page. Otherwise I normally uninstall "bigger" packages but leave ones like System Patches or the VPN export that don't impact operation.
https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide-prepare.html#packages
"The safest practice is to remove all packages before upgrading to a new release. The upgrade process will handle packages automatically, but packages are frequently a source of problems. To ensure a smooth upgrade, note the installed packages, remove them, perform the upgrade, and then reinstall when the upgrade is complete." -
-
@rcoleman-netgate said in Install package from older release:
@yquirion said in Install package from older release:
Have you updated to 2.7.0? If so, do you had to remove all you installed packages first?
It is recommended to always remove packages before upgrading.
Will I lose the configuration parameters if I remove those packages and reinstall them once I'm updated to 2.7.0?
Regards,
Yanick -
As @SteveITS said, you should not lose the settings by removing the packages and then reinstalling them.
-
@SteveITS thanks Steve, I appreciate!
Will remove them and perform the upgrade sometime this week.
Thanks again for your time!
Best Regards,
Yanick