如果我想使用 apt 安装 VLC,我可以运行
apt-cache show vlc | grep -i version
Version: 2.2.4-14ubuntu2
这将告诉我 apt 将引入的版本。Snap 当前在其存储库中有 VLC 3.x。但是,如果不将其拉下来并安装,我该如何查看它?
答案1
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 -
然而,开发人员还有其他快照,例如:-
alan@gort:~$ snap info atom
name: atom
summary: "A hackable text editor for the 21st Century."
publisher: flexiondotorg
contact: [email protected]
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
我认为这是上游软件包中的一个错误,开发人员应该解决它。
答案2
怎么样snap list
:
列出所有软件包并 grep 那里显示的版本
$snap list
Name Version Rev Tracking Publisher Notes
core18 20210722 2128 latest/stable canonical✓ base
snapd 2.51.4 12883 latest/stable canonical✓ snapd
用于grep
特定包:
snap list | grep vlc