My snap experience with the VLC Player snap
Requirements. I wanted to 'clone' the VLC snap install from one Ubuntu 18.04 sytsem to another. Reasons. Limited internet allowance and bandwidth.
I followed the steps written by @Lakindu-Akash. Thank you. This gave me a good starting point into the world of snap installs. I found I had duplicate VLC snaps. See bellow.
Cleaned 1) /snap/vlc$ ls 1620 1700 current /snap/vlc$
1700 was current. I deleted the 1620 directory and contents.
2)In /etc/systemd/system$ I had snap-vlc-1620.mount snap-vlc-1700.mount
so I deleted the 1620 nount here.
/etc/systemd/system$ sudo rm snap-vlc-1620.mount
3) In /var/lib/snapd/snaps$
I had -rw------- 1 root root 305086464 Aug 00 00:00 vlc_1620.snap -rw------- 1 root root 304545792 Jul 15 2020 vlc_1700.snap
I deleted the vlc_1620.snap here which is the actual snap downloaded file.
/var/lib/snapd/snaps$ sudo rm vlc_1620.snap
On the new system Copying the files and directories to the new system, keeping the same locations did not work. I did not manually try to create a new mount point. Maybe it would have worked had I done this.
After reading through the snap forum, thank you @adam-monsen , I decided to do an install from the snap file located in /var/lib/snapd/snaps$ where the actual downloaded VLC snap file is and not an inode(pointer).
I copied the vlc_1700.snap to the new machine and ran from within this directory the command
sudo install snap vlc_1700.snap --dangerous
where vlc_1700.snap is the name of the snap (image or what you call it) Apparently this install will never update as I did not use the ack number? I have to learn about ack and it's usage. The install however went fine and VLC works on the new system. I will go out on a limb and say this could be helpful if you wanted to re-install on the same machine as well, to a different location. This being because the new snap image gets created in the directory where the install snap image is located and the installed process launched.