答案1
如何查找应用程序安装的特定文件
在 Ubuntu 16.04 上找到了它们/usr/share/dia/shapes
。Ubuntu 或 Lubuntu 应该没什么区别。您可以借助
dpkg-query -S .shape
查找特定模式。这表明所有.shape
文件都在 中/usr/share/dia/shapes
。但它们被分组到许多子目录中。
笔记然而,对于每个.shape
文件,都有一个对应的.png
文件,很可能代表菜单中的形状:
也可以看看dpkg 查询命令
-S, --search filename-search-pattern...
Search for packages that own files corresponding to the given
pattern. Standard shell wildcard characters can be used in the
pattern, where asterisk (*) and question mark (?) will match a
slash, and blackslash (\) will be used as an escape character.
If the first character in the filename-search-pattern is none of
‘*[?/’ then it will be considered a substring match and will be
implicitly surrounded by ‘*’ (as in *filename-search-pattern*).
If the subsequent string contains any of ‘*[?\’, then it will
handled like a glob pattern, otherwise any trailing ‘/’ or ‘/.’
will be removed and a literal path lookup will be performed.
This command will not list extra files created by maintainer
scripts, nor will it list alternatives.
要找出应用程序安装其文件的位置,请使用(在本例中):
dpkg-query -L dia-shapes
利用突触进行探索
Synaptic 还提供了如何找出答案的帮助。
- 搜索`dia,右键单击包
- 点击“已安装的文件”(选项卡)