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

System Patches Package Programatical Apply

Scheduled Pinned Locked Moved pfSense Packages
4 Posts 3 Posters 656 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.
  • T
    tkriviradev
    last edited by Jun 5, 2023, 11:29 AM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jun 5, 2023, 12:51 PM

      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 Jun 5, 2023, 1:04 PM

        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 Jun 14, 2024, 12:17 PM Reply Quote 0
        • J
          jhozeska @tkriviradev
          last edited by Jun 14, 2024, 12:17 PM

          @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.
            [[user:consent.lead]]
            [[user:consent.not_received]]