如何获取 snap 包的版本号?

Eva*_*oll 11 versions version-control snap

如果我想使用apt安装VLC,我可以运行

apt-cache show vlc | grep -i version
Version: 2.2.4-14ubuntu2
Run Code Online (Sandbox Code Playgroud)

这将告诉我 apt 将引入的版本。Snap 目前在它的存储库中有 VLC 3.x。我如何在不将其拉下并安装的情况下看到它?

pop*_*pey 18

snap info理论上是你想要的。但是,开发人员可以告诉商店他们上传的版本。vlc 开发人员还没有这样做:-

alan@gort:~$ snap info vlc
name:      vlc
summary:   "The ultimate media player"
publisher: videolan
contact:   https://www.videolan.org/support/
description: |
  VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,
  DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,
  podcasts, and multimedia streams from various network sources.

channels:              
  stable:    daily (4) 120MB -
  candidate: daily (4) 120MB -
  beta:      daily (4) 120MB -
  edge:      daily (4) 120MB -
Run Code Online (Sandbox Code Playgroud)

但是,对于开发人员的其他快照,例如:-

alan@gort:~$ snap info atom
name:      atom
summary:   "A hackable text editor for the 21st Century."
publisher: flexiondotorg
contact:   snappy-canonical-storeaccount@canonical.com
description: |
  Atom is a free and open source text editor that is modern,
  approachable, and hackable to the core.

commands:
  - atom
tracking:    edge
installed:   1.16.0 (2) 150MB classic
refreshed:   2017-04-21 16:35:56 +0100 BST
channels:               
  stable:    1.16.0 (2) 150MB classic
  candidate: 1.16.0 (2) 150MB classic
  beta:      1.16.0 (2) 150MB classic
  edge:      1.16.0 (2) 150MB classic
Run Code Online (Sandbox Code Playgroud)

我认为这是上游包中的一个错误,开发人员应该解决它。