kmod 套件探索
下載套件
下載「kmod」這個套件。
$ apt download kmod
解開套件
解開「kmod_22-1ubuntu4_amd64.deb」
$ dpkg -x kmod_22-1ubuntu4_amd64.deb kmod
觀看資料夾結構
執行
$ tree kmod
顯示
kmod
├── bin
│ ├── kmod
│ └── lsmod -> kmod
├── etc
│ ├── depmod.d
│ │ └── ubuntu.conf
│ ├── init
│ │ └── kmod.conf
│ ├── init.d
│ │ └── kmod
│ └── modprobe.d
│ ├── blacklist-ath_pci.conf
│ ├── blacklist.conf
│ ├── blacklist-firewire.conf
│ ├── blacklist-framebuffer.conf
│ ├── blacklist-rare-network.conf
│ ├── blacklist-watchdog.conf
│ ├── iwlwifi.conf
│ └── mlx4.conf
├── lib
│ └── modprobe.d
│ └── aliases.conf
├── sbin
│ ├── depmod -> /bin/kmod
│ ├── insmod -> /bin/kmod
│ ├── lsmod -> /bin/kmod
│ ├── modinfo -> /bin/kmod
│ ├── modprobe -> /bin/kmod
│ └── rmmod -> /bin/kmod
└── usr
└── share
├── bash-completion
│ └── completions
│ └── kmod
├── doc
│ ├── kmod -> libkmod2
│ └── libkmod2
│ ├── README
│ └── TODO
├── initramfs-tools
│ └── hooks
│ └── kmod
└── man
├── fr
│ └── man5
│ └── modules.5.gz
├── man5
│ ├── depmod.d.5.gz
│ ├── modprobe.d.5.gz
│ ├── modules.5.gz
│ ├── modules.dep.5.gz
│ └── modules.dep.bin.5.gz -> modules.dep.5.gz
└── man8
├── depmod.8.gz
├── insmod.8.gz
├── kmod.8.gz
├── lsmod.8.gz
├── modinfo.8.gz
├── modprobe.8.gz
└── rmmod.8.gz
23 directories, 37 files
若有安裝這個套件的話,可執行
$ dpkg -L kmod
顯示
/.
/sbin
/etc
/etc/init.d
/etc/init.d/kmod
/etc/modprobe.d
/etc/modprobe.d/blacklist-ath_pci.conf
/etc/modprobe.d/mlx4.conf
/etc/modprobe.d/blacklist.conf
/etc/modprobe.d/iwlwifi.conf
/etc/modprobe.d/blacklist-rare-network.conf
/etc/modprobe.d/blacklist-framebuffer.conf
/etc/modprobe.d/blacklist-watchdog.conf
/etc/modprobe.d/blacklist-firewire.conf
/etc/init
/etc/init/kmod.conf
/etc/depmod.d
/etc/depmod.d/ubuntu.conf
/bin
/bin/kmod
/lib
/lib/modprobe.d
/lib/modprobe.d/aliases.conf
/usr
/usr/share
/usr/share/initramfs-tools
/usr/share/initramfs-tools/hooks
/usr/share/initramfs-tools/hooks/kmod
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/kmod
/usr/share/doc
/usr/share/doc/libkmod2
/usr/share/doc/libkmod2/TODO
/usr/share/doc/libkmod2/README
/usr/share/man
/usr/share/man/fr
/usr/share/man/fr/man5
/usr/share/man/fr/man5/modules.5.gz
/usr/share/man/man8
/usr/share/man/man8/depmod.8.gz
/usr/share/man/man8/kmod.8.gz
/usr/share/man/man8/modinfo.8.gz
/usr/share/man/man8/insmod.8.gz
/usr/share/man/man8/lsmod.8.gz
/usr/share/man/man8/rmmod.8.gz
/usr/share/man/man8/modprobe.8.gz
/usr/share/man/man5
/usr/share/man/man5/modprobe.d.5.gz
/usr/share/man/man5/modules.dep.5.gz
/usr/share/man/man5/modules.5.gz
/usr/share/man/man5/depmod.d.5.gz
/sbin/rmmod
/sbin/depmod
/sbin/modprobe
/sbin/modinfo
/sbin/insmod
/sbin/lsmod
/bin/lsmod
/usr/share/doc/kmod
/usr/share/man/man5/modules.dep.bin.5.gz
manpage
執行
$ dpkg -L kmod | grep '/man/man.*/' | sort
顯示
/usr/share/man/man5/depmod.d.5.gz
/usr/share/man/man5/modprobe.d.5.gz
/usr/share/man/man5/modules.5.gz
/usr/share/man/man5/modules.dep.5.gz
/usr/share/man/man5/modules.dep.bin.5.gz
/usr/share/man/man8/depmod.8.gz
/usr/share/man/man8/insmod.8.gz
/usr/share/man/man8/kmod.8.gz
/usr/share/man/man8/lsmod.8.gz
/usr/share/man/man8/modinfo.8.gz
/usr/share/man/man8/modprobe.8.gz
- $ man 5 depmod.d
- $ man 5 modprobe.d
- $ man 5 modules
- $ man 5 modules.dep
- $ man 5 modules.dep.bin
- $ man 8 depmod
- $ man 8 insmod
- $ man 8 kmod
- $ man 8 lsmod
- $ man 8 modinfo
- $ man 8 modprobe
- $ man 8 rmmod
下載 Source Package
執行
$ apt source kmod
會下載「kmod」這個「Source Package」
套件資訊
網址: http://packages.ubuntu.com/xenial/kmod
執行
$ apt show kmod
顯示
Package: kmod
Version: 22-1ubuntu4
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Marco d'Itri <md@linux.it>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 247 kB
Depends: libc6 (>= 2.17), libkmod2 (= 22-1ubuntu4), lsb-base (>= 4.1+Debian11ubuntu7)
Breaks: oss-compat (= 4)
Task: minimal, ubuntu-sdk
Supported: 5y
Download-Size: 89.1 kB
APT-Manual-Installed: yes
APT-Sources: http://tw.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Description: tools for managing Linux kernel modules
This package contains a set of programs for loading, inserting, and
removing kernel modules for Linux.
It replaces module-init-tools.
原始碼套件資訊
網址: http://packages.ubuntu.com/source/xenial/kmod
執行
$ apt showsrc kmod
顯示
Package: kmod
Binary: kmod, libkmod2, libkmod-dev, libkmod2-udeb, module-init-tools
Version: 22-1ubuntu4
Priority: important
Section: admin
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Marco d'Itri <md@linux.it>
Build-Depends: debhelper (>> 9), xsltproc, autoconf, automake, libtool, gtk-doc-tools
Architecture: linux-any all
Standards-Version: 3.9.6.1
Format: 3.0 (quilt)
Directory: pool/main/k/kmod
Files:
2a9ed47e99f5b1ff69679e73afc2020c 2143 kmod_22-1ubuntu4.dsc
0e674dbadc71155dd8aad62f10cf55c8 160576 kmod_22.orig.tar.xz
e60e60de81af8d09527d591db76b14c1 13644 kmod_22-1ubuntu4.debian.tar.xz
Vcs-Browser: http://anonscm.debian.org/cgit/users/md/kmod.git
Vcs-Git: git://anonscm.debian.org/users/md/kmod.git
Package-List:
kmod deb admin important arch=linux-any
libkmod-dev deb libdevel optional arch=linux-any
libkmod2 deb libs important arch=linux-any
libkmod2-udeb udeb debian-installer important arch=linux-any
module-init-tools deb oldlibs optional arch=all
Checksums-Sha1:
dd755199bf0f17284372c0575b7433204c025d4b 2143 kmod_22-1ubuntu4.dsc
29b9ff376c1d2c3df07217446a83c705b3e26c43 160576 kmod_22.orig.tar.xz
5e4a432b0cec649cfe6f002ee26884245d2f510f 13644 kmod_22-1ubuntu4.debian.tar.xz
Checksums-Sha256:
c11ad8116cf2d9f868a490dd2fd3e52518e9c07026864e204a90ffa2c97ccb79 2143 kmod_22-1ubuntu4.dsc
158cbbca15c570eb2f4ce29a64cae785cb377a200cf62d6f70ca52e3d33325f3 160576 kmod_22.orig.tar.xz
6b2a68f8333222f3b8cfb80d81d5fc936d90365e346c5092086ea148ec1d4ec0 13644 kmod_22-1ubuntu4.debian.tar.xz