如何在脱机帮助页面上运行全文搜索(从Yelp / gnome-help或其他东西)?

我安装了Ubuntu 16.04 LTS和Ubuntu 18.04 LTS。

我想搜索文档并离线阅读(因为它包含在/usr/share/help和其他位置的已安装软件包中)。 据我所知,它有三种格式:

  • HTML – .pagedpkg -S .page | grep -E /usr/share/help | awk '{print $1}' | sort | uniq | wc -l返回12结果)
  • DocBook – .docbookdpkg -S .docbook | grep -E /usr/share/help | awk '{print $1}' | sort | uniq | wc -l返回21结果)
  • ManPage(许多来自manpath = /usr/local/man:/usr/local/share/man:/usr/share/man

这些文件由Yelp程序(来自yelp包)和可执行文件yelpgnome-help呈现。

笔记:

  1. 在AskUbuntu上有类似的问题,关于ScrollKeeper数据库(由rarian-compat包提供)没有回答;
  2. 在LauchPad.net(2011年起)中有一个名为“搜索文档返回一个未知错误:’URI xref:search =’无法解析”的错误726439关于Yelp中的破解(?)搜索。 如果我按Ctrl S在当前版本的Yelp中搜索searchterm ,它仍会返回

    未知错误
    无法解析URI’xref:search = searchterm’。

当然我可以在所有这些文件上运行grep ,但是可以从Yelp运行这样的搜索吗?

这尤其适用于Linux中的手册页。

 find -name "cp.1.gz"| xargs zcat