Python PyGObject (PyGI)

Python PyGObject (PyGI)

Subject

Document

Python GObject

套件

套件探索

執行

$ apt-cache search gir | less

執行

$ apt-cache search gir1.2 | less

執行

$ apt-cache search gir | grep fcitx

顯示

gir1.2-fcitx-1.0 - Flexible Input Method Framework - GObject introspection

執行

$ dpkg -l gir1.2-fcitx-1.0

顯示

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  gir1.2-fcitx-1.0                1:4.2.9.1-1ubuntu1.1 amd64                Flexible Input Method Framework - GObject introspection

執行

$ dpkg -l | grep gir | grep fcitx

顯示

ii  gir1.2-fcitx-1.0                                     1:4.2.9.1-1ubuntu1.16.04.2                    amd64        Flexible Input Method Framework - GObject introspection

執行

$ dpkg -L gir1.2-fcitx-1.0 | sort

顯示

/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/girepository-1.0
/usr/lib/x86_64-linux-gnu/girepository-1.0/Fcitx-1.0.typelib
/usr/share
/usr/share/doc
/usr/share/doc/gir1.2-fcitx-1.0
/usr/share/doc/gir1.2-fcitx-1.0/changelog.Debian.gz
/usr/share/doc/gir1.2-fcitx-1.0/copyright
/usr/share/gir-1.0
/usr/share/gir-1.0/Fcitx-1.0.gir

路徑

  • /usr/lib/x86_64-linux-gnu/girepository-1.0
  • /usr/share/gir-1.0

路徑探索

執行

$ ls /usr/share/gir-1.0/

執行

$ ls /usr/lib/x86_64-linux-gnu/girepository-1.0

執行

$ dpkg -S /usr/share/gir-1.0/

執行

$ dpkg -S /usr/lib/x86_64-linux-gnu/girepository-1.0