パッケージマネージャを使用してインストールするとき、通常はデモコードが移動する場所です。

パッケージマネージャを使用してインストールするとき、通常はデモコードが移動する場所です。

この特定の例では、FedoraパッケージマネージャからCGALライブラリのデモコードを取得しようとしていますyum

CGAL-demos-source.x86_64 : Examples and demos of CGAL algorithms
CGAL-devel.i686 : Development files and tools for CGAL applications

開発パッケージは最終的/usr/includeに表示されることがわかります/usr/lib64デモのソースコードを見たいです。一般的にどこに表示されますか?

ベストアンサー1

パッケージがインストールされていない場合は、repoqueryYUMリポジトリから直接削除されたパッケージも表示できます。

はい

$ repoquery -ql CGAL-demos-source | grep examples | head
/usr/share/CGAL/examples
/usr/share/CGAL/examples/AABB_tree
/usr/share/CGAL/examples/AABB_tree/AABB_custom_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_custom_indexed_triangle_set_array_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_custom_indexed_triangle_set_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_custom_triangle_soup_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_face_graph_triangle_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_halfedge_graph_edge_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_insertion_example.cpp
/usr/share/CGAL/examples/AABB_tree/AABB_polyhedron_edge_example.cpp

上記の出力で、コードが次のディレクトリにあることを確認できます。

/usr/share/CGAL/examples

どのパッケージ?

どのパッケージにデモファイルが含まれているかわからない場合は、repoquery同様の方法でデモファイルを見つけることができます。

$ repoquery -q CGAL*
CGAL-0:4.3-1.fc20.i686
CGAL-0:4.3-1.fc20.x86_64
CGAL-demos-source-0:4.3-1.fc20.x86_64
CGAL-devel-0:4.3-1.fc20.i686
CGAL-devel-0:4.3-1.fc20.x86_64

以下は、「CGAL *」パターンと一致するすべてのパッケージです。これに基づいて、デモファイルは次のパッケージにありますCGAL-demos-source-0:4.3-1.fc20.x86_64

このパッケージをインストールするには:

$ sudo yum install CGAL-demos-source

おすすめ記事