Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Do I Need to Revert Patches Before Upgrading pfSense?

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 4 Posters 794 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      leeroy
      last edited by

      Hello,

      When using the "Patches" package in pfSense, do I need to revert applied patches before upgrading to a new release?

      If not, will previously applied patches still appear in the patch list after the upgrade if they have already been incorporated into the new version?

      I ask because I noticed the line: "After upgrading, do not revert a patch if the changes from the patch were included in the upgrade. This will remove the changes, which is unlikely to be helpful."
      This seems to suggest that patches included in the upgrade remain in place.

      Any clarification would be greatly appreciated!

      Thanks!

      S GertjanG 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @leeroy
        last edited by SteveITS

        @leeroy Normally, patches are included in the later versions of pfSense and those files are just overwritten.

        Typically then the list of patches does not include patches for old versions, only ones that apply to the new version. (this list is updated when the patches package is updated)

        However since it's possible to add a custom patch, they mean, don't apply a custom patch, then replace the file on disk, then attempt to revert the custom patch.

        IOW the patches here just replace certain lines of code in various PHP files. If the file was changed, the lines of code no longer match up.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 1
        • GertjanG
          Gertjan @leeroy
          last edited by

          @leeroy said in Do I Need to Revert Patches Before Upgrading pfSense?:

          "After upgrading, do not revert a patch if the changes from the patch were included in the upgrade. This will remove the changes, which is unlikely to be helpful."

          This would be valid for patches you've added yourself (manually), before the pfSense upgrade, and were not yet included in this upgrade.
          So, these patches still "apply".
          If your manually entered patches doesn't apply anymore, this means that this patch is probably ( ! ) solved.

          These :

          6fa44483-fdbe-4a50-9f9f-c87274c6d706-image.png

          will be gone, as a new pfSense version will also receive a new System patches package, with less, or even no patches to apply, as the new pfSEnse version will include these corrections (as the patches are (one of) the reasons why the new pfSense was released !)

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 1
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            https://docs.netgate.com/pfsense/en/latest/development/system-patches.html#managing-recommended-patches

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 1
            • L
              leeroy
              last edited by

              We don’t have any custom packages, so this should be fine. Ultimately, I’d prefer not to manage these packages, and the fact that they will automatically disappear as they’re incorporated into future releases is ideal.

              We’re experiencing a couple of odd issues with KEA and logging, and I noticed a fix in there that seems relevant. I’ll test these first before filing a bug.

              Thanks for the info, @SteveITS, @Gertjan, @jimp!

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @leeroy
                last edited by

                @leeroy said in Do I Need to Revert Patches Before Upgrading pfSense?:

                We don’t have any custom packages

                Make :

                61aef0a2-815f-46fa-b99f-95174dc0a65f-image.png

                an exception.
                It's made by Netgate, for pfSense. Even if you don't think you need it, you need it. Probably because Netgate knows more about pfSense then we do 😊

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.