我想要文档位于https://developer.gnome.org/gobject/stable/index.html在我的本地 RHEL 7 计算机上可用/usr/share/
。我需要安装的软件包的名称是什么?
答案1
yum
从该链接“gtype”看起来很适合在数据库中搜索
$ yum whatprovides '*/gobject/*' | egrep 'gtype.*html'
Filename : /usr/share/gtk-doc/html/gobject/gtype-non-instantiable.html
Filename : /usr/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html
Filename : /usr/share/gtk-doc/html/gobject/chapter-gtype.html
Filename : /usr/share/gtk-doc/html/gobject/gtype-instantiable-classed.html
Filename : /usr/share/gtk-doc/html/gobject/gtype-conventions.html
chapter-gtype.html
看起来很受欢迎,所以
$ yum whatprovides /usr/share/gtk-doc/html/gobject/chapter-gtype.html
...
glib2-doc-2.54.2-2.el7.noarch : A library of handy utility functions
Repo : base
Matched from:
Filename : /usr/share/gtk-doc/html/gobject/chapter-gtype.html
所以这可能是glib2-doc
包裹。