如何以及在哪里查找包影响哪些目录和文件的详细信息?

如何以及在哪里查找包影响哪些目录和文件的详细信息?

在添加的上下文中能力BaseX,我可以看到有关包的一些信息:

nicholas@mordor:~$ 
nicholas@mordor:~$ apt show basex
Package: basex
Version: 9.0.1+ds-1
Priority: optional
Section: universe/database
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Alexander Holupirek <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 4,059 kB
Depends: java-wrappers, default-jre | java8-runtime
Recommends: libjline2-java
Suggests: libtagsoup-java, libxml-commons-resolver1.1-java, libjing-java
Homepage: http://basex.org
Download-Size: 3,611 kB
APT-Manual-Installed: yes
APT-Sources: http://ca.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: XML database and XPath/XQuery processor
 BaseX is a very fast and light-weight, yet powerful XML database and
 XPath/XQuery processor, including support for the latest W3C Full Text and
 Update Recommendations. It supports large XML instances and offers a highly
 interactive front-end (basexgui). Apart from two local standalone modes, BaseX
 offers a client/server architecture.
 .
 The package provides following commands:
  * basex  ..........  Standalone local XML database. Command line interface.
  * basexgui  .......  Standalone local XML database. Graphical user interface.
  * basexserver  ....  BaseX XML Database Server.
  * basexclient  ....  BaseX XML Database Client.
 BaseX XML database and XPath/XQuery processor

nicholas@mordor:~$ 

但我如何找到更多信息,例如在哪里lib目录是为BaseX

nicholas@mordor:~$ 
nicholas@mordor:~$ dpkg -L basex
/.
/usr
/usr/bin
/usr/bin/basex
/usr/bin/basexclient
/usr/bin/basexgui
/usr/bin/basexserver
/usr/share
/usr/share/applications
/usr/share/applications/basexgui.desktop
/usr/share/doc
/usr/share/doc/basex
/usr/share/doc/basex/changelog.Debian.gz
/usr/share/doc/basex/copyright
/usr/share/doc/basex/examples
/usr/share/doc/basex/examples/input.xml
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/128x128
/usr/share/icons/hicolor/128x128/apps
/usr/share/icons/hicolor/128x128/apps/basex.png
/usr/share/icons/hicolor/16x16
/usr/share/icons/hicolor/16x16/apps
/usr/share/icons/hicolor/16x16/apps/basex.png
/usr/share/icons/hicolor/192x192
/usr/share/icons/hicolor/192x192/apps
/usr/share/icons/hicolor/192x192/apps/basex.png
/usr/share/icons/hicolor/22x22
/usr/share/icons/hicolor/22x22/apps
/usr/share/icons/hicolor/22x22/apps/basex.png
/usr/share/icons/hicolor/24x24
/usr/share/icons/hicolor/24x24/apps
/usr/share/icons/hicolor/24x24/apps/basex.png
/usr/share/icons/hicolor/256x256
/usr/share/icons/hicolor/256x256/apps
/usr/share/icons/hicolor/256x256/apps/basex.png
/usr/share/icons/hicolor/32x32
/usr/share/icons/hicolor/32x32/apps
/usr/share/icons/hicolor/32x32/apps/basex.png
/usr/share/icons/hicolor/36x36
/usr/share/icons/hicolor/36x36/apps
/usr/share/icons/hicolor/36x36/apps/basex.png
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/basex.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/basex.png
/usr/share/icons/hicolor/72x72
/usr/share/icons/hicolor/72x72/apps
/usr/share/icons/hicolor/72x72/apps/basex.png
/usr/share/icons/hicolor/96x96
/usr/share/icons/hicolor/96x96/apps
/usr/share/icons/hicolor/96x96/apps/basex.png
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/scalable/apps
/usr/share/icons/hicolor/scalable/apps/basex.svg
/usr/share/java
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/basex.1.gz
/usr/share/man/man1/basexclient.1.gz
/usr/share/man/man1/basexgui.1.gz
/usr/share/man/man1/basexserver.1.gz
/usr/share/maven-repo
/usr/share/maven-repo/org
/usr/share/maven-repo/org/basex
/usr/share/maven-repo/org/basex/basex
/usr/share/maven-repo/org/basex/basex/9.0.1
/usr/share/maven-repo/org/basex/basex/9.0.1/basex-9.0.1.jar
/usr/share/maven-repo/org/basex/basex/9.0.1/basex-9.0.1.pom
/usr/share/maven-repo/org/basex/basex/debian
/usr/share/maven-repo/org/basex/basex/debian/basex-debian.pom
/usr/share/maven-repo/org/basex/basex-parent
/usr/share/maven-repo/org/basex/basex-parent/9.0.1
/usr/share/maven-repo/org/basex/basex-parent/9.0.1/basex-parent-9.0.1.pom
/usr/share/maven-repo/org/basex/basex-parent/debian
/usr/share/maven-repo/org/basex/basex-parent/debian/basex-parent-debian.pom
/usr/share/pixmaps
/usr/share/pixmaps/basex_16x16.xpm
/usr/share/pixmaps/basex_32x32.xpm
/usr/share/java/basex.jar
/usr/share/maven-repo/org/basex/basex/debian/basex-debian.jar
nicholas@mordor:~$

然而,我正在查看lib目录BaseX本身。

答案1

lib目录可以在 BaseX 的完整发行版中找到,可以从官方主页下载。看启动:完整发行版了解更多信息。

答案2

我认为没有basex任何lib内容,只是bin

dpkg -L basex不会返回 lib 目录中的任何内容,因此它肯定不在basex包中。它可能在basex-dev或类似的东西中,但当我寻找它时,我发现:

$ apt search basex
Sorting... Done
Full Text Search... Done
basex/testing,testing 9.0.1+ds-1 all
  XML database and XPath/XQuery processor

lua-basexx/testing,testing 0.3-2 all
  baseXX encoding/decoding library for Lua

如果我查看 的内容lua-basexx,我也看不到 中的任何内容lib

$ apt-file list lua-basexx
lua-basexx: /usr/share/doc/lua-basexx/changelog.Debian.gz
lua-basexx: /usr/share/doc/lua-basexx/copyright
lua-basexx: /usr/share/lua/5.1/basexx.lua
lua-basexx: /usr/share/lua/5.2/basexx.lua

我们的最后一个选择是搜索libbasex.so

$ apt-file search libbasex
$                                  

libbasex这不会返回任何内容,因此debian 存档中不存在以 开头的文件。

答案3

dpkg -L列出给定包中附带的所有文件;要全面了解对系统所做的更改,您还必须查看软件包的维护者脚本,但basex没有任何脚本。

BaseX 是一个 Java 程序,因此它的库不在lib...文件中;而是在文件中。它们以 JAR 的形式提供,/usr/share/maven-repo以 Maven 存储库的形式发布,并以/usr/share/java. BaseX“库”(也包含所有 BaseX 应用程序)是/usr/share/maven-repo/org/basex/basex/9.0.1/basex-9.0.1.jar.

我不确定 BaseX 的打包版本是否会从任何给定目录自动加载 JAR,但您始终可以将 JAR 添加到类路径;看这个答案了解详情。

相关内容