Documentation does not cover how to remove/revert after "snap try"

Bug #1740179 reported by Drew Freiberger on 2017-12-26
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Undecided
Alan Pope 🍺🐧🐱 πŸ¦„

Bug Description

From what I've been able to find, the documentation for the command "snap try" details how you can try an unpacked snap, but doesn't appear to discuss how you can revert back to the stable/edge/etc channel that you may have had installed prior.

Example:
snap install charm
git clone https://github.com/juju/charm-tools.git
git cherrypick my-patch
snapcraft
drew@grimoire:~/src/charm-tools$ snap list charm
Name Version Rev Developer Notes
charm 2.2.3 114 charms -

drew@grimoire:~/src/charm-tools$ snap try
charm 2.2.4-dev+git-1-ga4211d5 mounted from /home/drew/src/charm-tools/prime

drew@grimoire:~/src/charm-tools$ snap list charm
Name Version Rev Developer Notes
charm 2.2.4-dev+git-1-ga4211d5 x1 try

How, from this point, is one to un-try the snap? This does not appear to be documented in the "try" section of https://docs.snapcraft.io/reference/snap-command#try

Drew Freiberger (afreiberger) wrote :

From what I've found, it appears one must 'snap remove charm; snap install charm --channel=stable' to revert to a stable release after installing snap via try. I've tried snap switch charm --stable and --edge with no luck. This should either be explicitly called out as part of the try/revert process, or snap switch should switch from a "try"-ed mount back to a snap store channel, or there should be a snap "untry" command added.

The source for the doc you linked to at the end of your bug report can be found at https://github.com/canonical-docs/snappy-docs/blob/master/reference/snap-command.md and as such a bug should probably be filed at https://github.com/canonical-docs/snappy-docs/issues rather than against snapd itself.

I created a pull request for the docs to fix this. https://github.com/canonical-docs/snappy-docs/pull/284

Changed in snapd:
status: New → Confirmed
assignee: nobody → Alan Pope 🍺🐧🐱 πŸ¦„ (popey)
Michael Vogt (mvo) on 2018-01-02
Changed in snapd:
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers