What is the correct way to create alias to snap package in Ubuntu 16.04?

Solution 1:

Whatever problem was encountered last year when trying to register the alias now seems fixed. The same sequence worked on 16.04, and the nearly released 18.04 as well. Versions uses are in the output.

$ sudo snap install blender-tpaw
[sudo] password for dpb: 
blender-tpaw 2.78c-tpaw0 from 'tpaw' installed
$ sudo snap alias blender-tpaw blender
Added:
  - blender-tpaw as blender
$ sudo snap aliases
Command                  Alias         Notes
aws-cli.aws              aws           -
blender-tpaw             blender       manual
conjure-up.conjure-down  conjure-down  -
lxd.lxc                  lxc           -
$ snap version
snap    2.32.3.2+18.04
snapd   2.32.3.2+18.04
series  16
ubuntu  18.04
kernel  4.15.0-15-generic

References:

  • I think the following post gives good background on the change that was implemented for those interested in details. https://forum.snapcraft.io/t/improving-the-aliases-implementation/18