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

    System Patches Package Programatical Apply

    pfSense Packages
    3
    4
    647
    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.
    • T
      tkriviradev
      last edited by

      Hello,

      I am working on Pfsense Ansible automation, so far I was able to automate many aspects of pfsense.

      I question regarding "System Patches Package". is there a way to apply all recommended patches via command line. "rest api" or some sort of auto-apply?

      Thank you in advance!

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

        There is code to apply them all from the GUI, but it isn't exposed in any form of an API or CLI.

        https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-System_Patches/files/usr/local/www/system_patches.php#L67

        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
        • T
          tkriviradev
          last edited by

          Maybe I can assemble curl for this? I will register it as fact and will avoid execution again and again or special tag.

          J 1 Reply Last reply Reply Quote 0
          • J
            jhozeska @tkriviradev
            last edited by

            @tkriviradev Did you have any success making a curl command?

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