<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to update apps correctly via the command line? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495554#M74523</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I was wondering how to update Splunk apps correctly while keeping necessary edited configs and own files.&lt;BR /&gt;
For single instances the documentation says:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;./splunk install app  -update 1 -auth username:password&lt;/EM&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;So this will update an app in ./etc/apps only with new defaults? Will it keep my changes? What does &lt;EM&gt;-update 1&lt;/EM&gt; do in this command?&lt;/LI&gt;
&lt;LI&gt;How to proceed if I want to update an App that is deployed by a Deployment Server or Cluster Master (so stored in deployment-pps or master-apps)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 10:38:02 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2020-01-24T10:38:02Z</dc:date>
    <item>
      <title>How to update apps correctly via the command line?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495554#M74523</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I was wondering how to update Splunk apps correctly while keeping necessary edited configs and own files.&lt;BR /&gt;
For single instances the documentation says:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;./splunk install app  -update 1 -auth username:password&lt;/EM&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;So this will update an app in ./etc/apps only with new defaults? Will it keep my changes? What does &lt;EM&gt;-update 1&lt;/EM&gt; do in this command?&lt;/LI&gt;
&lt;LI&gt;How to proceed if I want to update an App that is deployed by a Deployment Server or Cluster Master (so stored in deployment-pps or master-apps)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 10:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495554#M74523</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2020-01-24T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to update apps correctly via the command line?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495555#M74524</link>
      <description>&lt;P&gt;Hi @HeinzWaescher &lt;/P&gt;

&lt;P&gt;1- &lt;CODE&gt;-update 1&lt;/CODE&gt; means perform an install, but 'force' it (like the checkbox in the GUI)&lt;BR /&gt;
Its basically saying, 'yes, this is already installed, but I want to update it with the provided  package'&lt;/P&gt;

&lt;P&gt;The format is actually &lt;CODE&gt;/splunk install app &amp;lt;path to app.package&amp;gt; -update 1 -auth username:password&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you have modifications in your ./local folder these 'should' be preserved.&lt;BR /&gt;
I say 'should', because an app from Splunkbase/vendor should not contain a /local folder (or it should be empty) - if it did contain files in /local these would also be replaced.&lt;/P&gt;

&lt;P&gt;My approach is always download the package, unzip it and check first what it contains, then you know what it will/will not replace.&lt;/P&gt;

&lt;P&gt;2- To update apps on a DS, or CM you should copy the app folder (once you have confirmed it is working as you expect) from your test server into the relevent path on the DS/CM&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 12:33:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495555#M74524</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-01-24T12:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to update apps correctly via the command line?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495556#M74525</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 14:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/495556#M74525</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2020-01-24T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to update apps correctly via the command line?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/617190#M77812</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;2- To update apps on a DS, or CM you should copy the app folder (once you have confirmed it is working as you expect) from your test server into the relevent path on the DS/CM&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Should I remove the old app folder before copying over the updated app folder (on CM in manager-apps)? Or is it better to copy the updated app folder on top of the old one, overwriting duplicate files?&lt;/P&gt;&lt;P&gt;Is it same for Search Head Deployer?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 19:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-update-apps-correctly-via-the-command-line/m-p/617190#M77812</guid>
      <dc:creator>rev1ver</dc:creator>
      <dc:date>2022-10-14T19:04:11Z</dc:date>
    </item>
  </channel>
</rss>

