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

    Testing packages

    Scheduled Pinned Locked Moved Development
    4 Posts 2 Posters 923 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
      loonylion
      last edited by

      Any advice on how to test I've packaged something completely if it's not possible to do a local install? I don't particularly want to be uploading packages with untested install procedures.

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

        If you have a FreeBSD box where you're developing the pkg portion of things, you can "make package" there and then copy the resulting pkg file to the target firewall, then "pkg add blah-123.txz" and it should work the same as if it was pulled remotely. If that package depends on other packages you'll need to make packages for those and copy them as well. As long as all the txz files end up on the target box it will use them if it needs them.

        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 0
        • L
          loonylion
          last edited by

          the package seems to install ok but the changes are not made to the UI (i.e the page isn't added) and it seems the defined install routine isn't run. Is this because I haven't coded them right or because the pkg add command doesn't process those instructions?

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

            When the package is made properly, the pkg add will perform the exact same install procedure as the GUI would.

            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 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.