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

    Install/restore and omit some packages

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 684 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.
    • D
      demux
      last edited by

      We need to reinstall and then restore the configuration/packages.
      Two packages must be omitted from restore and package reinstall.
      How can I edit the saved xml file so that a package will not be reinstalled and the package's config won't be restored.
      Thanks!
      -demux

      1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Open the config.xml backup in a text editor that properly supports UNIX line endings. Find the <package>[...]</package> tags for the packages you do not want and delete them. Save the resulting file with a new unique name. Then restore that edited file.

        The <package>[...]</package> tags are the part which record installed packages. They do not hold package settings, so the settings will remain unless you also edit those out.

        You may also want to find any <menu>[...]</menu> and <tab>[...]</tab> entries from those packages so you aren't left with menu or tab entries that lead nowhere.

        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
        • D
          demux
          last edited by

          Thank you very much for your answer.
          Does that mean that the settings will be restored even when I deleted <package> & <menu> & <tab> entries? Means settings will be restored but packages won't be installed? Means that if one of the deleted packages will be installed later it might be possible that it starts with the old settings (or part of them)?

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

            @demux said in Install/restore and omit some packages:

            Thank you very much for your answer.
            Does that mean that the settings will be restored even when I deleted <package> & <menu> & <tab> entries? Means settings will be restored but packages won't be installed? Means that if one of the deleted packages will be installed later it might be possible that it starts with the old settings (or part of them)?

            The settings will still be in the configuration and if the package is reinstalled, the old settings will be active again. You can find and edit out the package settings as well. The tag names for settings vary by package but they are all under <installedpackages>[...]</installedpackages>. You shouldn't remove that entire tag as it would remove all package settings (and possibly some from certain base functions like UPnP).

            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
            • D
              demux
              last edited by

              Thanks a lot!

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