/home/UserName 中的 snap 文件夹与根 (/) 中的 snap 文件夹有什么区别?

use*_*170 12 root directory home-directory snap

snap中的文件夹/home/<UserName>snaproot ( ) 中的文件夹有什么区别/?我试图了解安装程序及其文件时的存储位置。我在机器上安装的第一个也是唯一一个程序是 Spotify。

spotify我注意到两个单独的文件夹中有两个文件夹snap。一份位于主目录,一份位于根目录。

问题

  • 为什么有两个snap文件夹?
  • 为什么有两个spotify文件夹?
  • 它们有什么不同吗(snapspotify文件夹)?

注意:我通过 Ubuntu 软件应用程序安装 Spotify,而不是通过终端。

moo*_*765 7

-目录/snap包含一个名为README

This directory presents installed snap packages.

It has the following structure:

/snap/bin                   - Symlinks to snap applications.
/snap/<snapname>/<revision> - Mountpoint for snap content.
/snap/<snapname>/current    - Symlink to current revision, if enabled.

DISK SPACE USAGE

The disk space consumed by the content under this directory is
minimal as the real snap content never leaves the .snap file.
Snaps are *mounted* rather than unpacked.

For further details please visit
https://forum.snapcraft.io/t/the-snap-directory/2817
Run Code Online (Sandbox Code Playgroud)

总而言之,此目录包含快照的挂载点以及snapd.

该目录/home/<username>/snap包含快照的配置文件。