Persist
TIP
Assume the Scoop root directory is D:\scoop
- Scoop provides a
persistconfiguration 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\completionsD:\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.PSCompletionsdirectory, not theD:\scoop\persist\abgox.PSCompletionsdirectory.- So, its settings and completion data will still be saved in the
D:\scoop\persist\abgox.PSCompletionsdirectory. - After reinstalling, the data will continue to be used again.
- So, its settings and completion data will still be saved in the
- If the
-p/--purgeparameter is used when uninstalling, theD:\scoop\persist\abgox.PSCompletionsdirectory will be removed.
- Taking abgox.PSCompletions as an example, Scoop will install it to