ser*_*hei 5 package-management snap
我想获得手动安装的软件包列表,snap并能够找出系统安装程序是否手动安装了 foobar 软件包。
例如:
$ snap list
Name Version Rev Tracking Publisher Notes
canonical-livepatch 9.5.5 95 latest/stable canonical? -
core 16-2.45.2 9665 latest/stable canonical? core
core18 20200707 1880 latest/stable canonical? base
discord 0.0.10 109 latest/stable snapcrafters -
gnome-3-28-1804 3.28.0-17-gde3d74c.de3d74c 128 latest/stable canonical? -
gnome-3-34-1804 0+git.3009fc7 36 latest/stable/… canonical? -
gtk-common-themes 0.1-36-gc75f853 1506 latest/stable/… canonical? -
ripgrep 12.1.0 9 latest/stable icey classic
simplenote 1.20.0 368 latest/stable snapcrafters -
slack 4.7.0 25 latest/stable slack? classic
snap-store 3.36.0-80-g208fd61 467 latest/stable/… canonical? -
snapd 2.45.2 8542 latest/stable canonical? snapd
zoom-client 5.1.422789.0705 92 latest/stable ogra -
Run Code Online (Sandbox Code Playgroud)
在这里,core,core18不是我手动安装的(至少不是明确安装的),所以我的尝试是:
$ snap list | grep -v Publisher | grep -v canonical | awk '{print $1}' | tr '\n' ' '
discord ripgrep simplenote slack zoom-client
Run Code Online (Sandbox Code Playgroud)
但是,我不确定这是否是排除自动安装的软件包的正确方法。从命令行有什么巧妙的方法可以做到这一点吗?
Ken*_*Ken 10
您可以看到一个列表:
ls -l /snap/bin
ls -l /var/lib/snapd/snaps
Run Code Online (Sandbox Code Playgroud)
我认为它只显示了快照安装。
| 归档时间: |
|
| 查看次数: |
2378 次 |
| 最近记录: |