直径图形状在 Linux 上的位置在哪里?

Dan*_*ncă 6 icons dpkg diagram software-installation dia

我最近安装了这个很棒的图表创建工具Dia,还下载了SVG 格式的AWS 图表图标

我试图locate *.shape(因为它们都需要以 结尾*.shape)但找不到任何东西,只有不相关的文件。

有谁知道迪亚*.shape在哪里?我真的很想一次添加所有 AWS 图标,而不是从 Dia UI 一个一个地添加它们。

Jac*_*ijm 8

如何查找应用程序安装的特定文件

在 Ubuntu 16.04 中找到它们/usr/share/dia/shapes。Ubuntu 或 Lubuntu 不应该有什么不同。您可以在以下帮助下找出文件的安装位置

dpkg-query -S .shape
Run Code Online (Sandbox Code Playgroud)

寻找特定的模式。这表明所有.shape文件都在/usr/share/dia/shapes. 然而,它们被分组在许多子目录中。


但是请注意,对于每个.shape文件,都有一个对应的.png文件,最有可能代表菜单中的形状:

在此处输入图片说明


另见man dpkg-query

   -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.
Run Code Online (Sandbox Code Playgroud)

要找出应用程序安装其文件的位置,请使用(在这种情况下):

dpkg-query -L dia-shapes
Run Code Online (Sandbox Code Playgroud)

用突触发现

此外,Synaptic 还提供有关如何查找的帮助。

  • 搜索`dia,在包上右键
  • 单击“已安装的文件”(选项卡)