Install/restore and omit some packages
-
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 -
J jimp moved this topic from Problems Installing or Upgrading pfSense Software on
-
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. -
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)? -
@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). -
Thanks a lot!