Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Tips and Tricks

A list of useful small guides related to package management. See lots more on theArchLinux wiki.

Show the license information of a package

To list the license of an installed package you can run:

$pacman-Qimeson|grep'^Licenses'Licenses:Apache2

To list the license of a package in the sync database you can run:

$pacman-Simeson|grep'^Licenses'Licenses:Apache2

For the exact meaning of the license string seeLicense Metadata.

To list all license files installed by a package in the recommended location:

$pacman-Qlmeson|grep-E"/share/licenses/.+/.+"meson/usr/share/licenses/meson/COPYING

Note that not every package includes the license text as a file, nor puts itin this specific recommended location.

Listing the content of a package

If you would like to know what has been installed as a part of a specific package use the following command:

pacman -Ql <name of the package>

Example:

$ pacman -Ql mingw-w64-x86_64-pugixml

mingw-w64-x86_64-pugixml /mingw64/mingw-w64-x86_64-pugixml /mingw64/bin/mingw-w64-x86_64-pugixml /mingw64/bin/libpugixml.dllmingw-w64-x86_64-pugixml /mingw64/include/mingw-w64-x86_64-pugixml /mingw64/include/pugixml-1.8/mingw-w64-x86_64-pugixml /mingw64/include/pugixml-1.8/pugiconfig.hppmingw-w64-x86_64-pugixml /mingw64/include/pugixml-1.8/pugixml.hppmingw-w64-x86_64-pugixml /mingw64/lib/mingw-w64-x86_64-pugixml /mingw64/lib/cmake/mingw-w64-x86_64-pugixml /mingw64/lib/cmake/pugixml/mingw-w64-x86_64-pugixml /mingw64/lib/cmake/pugixml/pugixml-config-noconfig.cmakemingw-w64-x86_64-pugixml /mingw64/lib/cmake/pugixml/pugixml-config.cmakemingw-w64-x86_64-pugixml /mingw64/lib/pkgconfig/mingw-w64-x86_64-pugixml /mingw64/lib/pkgconfig/pugixml.pcmingw-w64-x86_64-pugixml /mingw64/lib/pugixml-1.8/mingw-w64-x86_64-pugixml /mingw64/lib/pugixml-1.8/libpugixml.dll.a

As you can see the package contains:

  • a binary executable library file (libpugixml.dll),
  • a static library (libpugixml.dll.a),
  • 2 header files (pugixml.hpp, pugiconfig.hpp),
  • 2 cmake files,
  • and a PKGCONFIG file (pugixml.pc).

[8]ページ先頭

©2009-2025 Movatter.jp