`snap` should provide functionality to find non-installed snap which contain known file (analog of `apt-file search`)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Steps to reproduce:
1. Install Ubuntu 14.04 LTS, 16.04 LTS, 17.10 or 18.04 LTS
2. Try to use `snap` to search files, which are included to non-installed snap (analog of `apt-file search`)
Expected results:
* snap has functionality similar too `apt-file search`
Actual results:
* snap do not have functionality similar to `apt-file search`
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snapd 2.29.4.2
ProcVersionSign
Uname: Linux 4.4.0-112-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CurrentDesktop: MATE
Date: Sat Feb 10 17:26:15 2018
InstallationDate: Installed on 2018-01-04 (36 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
tags: | added: trusty |
tags: |
added: focal groovy removed: artful |
tags: |
added: hirsute impish removed: groovy trusty |
tags: |
added: jammy removed: xenial |
this apt behaviour might conceptually not be feasible for snaps, do not forget that snaps usually ship their dependencies included ...
something like a "snap find-file npm" could give you 1000s of useless results (simply every node based snap in the store), you would simply end up with massive duplication.
while an "apt-file search libpng1.2" will only return the few apt packages that actually ship libpng (which will then be used via the binary package dependency system), in the snap world it would simply return every graphical app including this lib in the snap (due to the fact that snaps explicitly forbid dependencies you will likely never have something like a libpng-snap). dependency resolution of snaps happens via parts at build-time in snapcraft, not at run-time via binary package dependencies like in the apt/dpkg world.