Skip to content

Persist

TIP

Assume the Scoop root directory is D:\scoop

  • Scoop provides a persist configuration in the manifest files, which can persist data files in the app directory.
    • Taking abgox.PSCompletions as an example, Scoop will install it to D:\scoop\apps\abgox.PSCompletions.
    • It will persist data directory and file:
      • D:\scoop\apps\abgox.PSCompletions\completions => D:\scoop\persist\abgox.PSCompletions\completions
      • D:\scoop\apps\abgox.PSCompletions\data.json => D:\scoop\persist\abgox.PSCompletions\data.json
    • When uninstalling abgox.PSCompletions, Scoop only removes the D:\scoop\apps\abgox.PSCompletions directory, not the D:\scoop\persist\abgox.PSCompletions directory.
      • So, its settings and completion data will still be saved in the D:\scoop\persist\abgox.PSCompletions directory.
      • After reinstalling, the data will continue to be used again.
    • If the -p/--purge parameter is used when uninstalling, the D:\scoop\persist\abgox.PSCompletions directory will be removed.

abyss — always building your stable source.
Released under the MIT.