{{tag>[linux module driver]}} ====== modprobe ====== 리눅스에서 커널 모듈을 로드하고 제거하는 명령어 * ''/etc/modules-load.d/'' 부팅시 자동 로드 * ''/etc/modules-load.d/blacklist.conf'' 부팅시 자동 로드 방지(블랙리스트) ''blacklist MODULENAME'' ===== USAGE ===== modprobe [options] [-i] [-b] modulename modprobe [options] -a [-i] [-b] modulename [modulename...] modprobe [options] -r [-i] modulename modprobe [options] -r -a [-i] modulename [modulename...] modprobe [options] -c modprobe [options] --dump-modversions filename sudo modprobe rtw_8821 sudo modprobe -r rtw_8821 * ''**modprobe** [OPTIONS] MODULENAME'' 모듈 로드 * ''**-r**'' 모듈 제거(의존성 제거) * ''**-l**'' 모든 모듈 목록 출력 ==== HELP ==== ++++ modprobe --help | Usage: modprobe [options] [-i] [-b] modulename modprobe [options] -a [-i] [-b] modulename [modulename...] modprobe [options] -r [-i] modulename modprobe [options] -r -a [-i] modulename [modulename...] modprobe [options] -c modprobe [options] --dump-modversions filename Management Options: -a, --all Consider every non-argument to be a module name to be inserted or removed (-r) -r, --remove Remove modules instead of inserting --remove-dependencies Deprecated: use --remove-holders --remove-holders Also remove module holders (use together with -r) -w, --wait When removing a module, wait up to MSEC for module's refcount to become 0 so it can be removed (use together with -r) --first-time Fail if module already inserted or removed -i, --ignore-install Ignore install commands -i, --ignore-remove Ignore remove commands -b, --use-blacklist Apply blacklist to resolved alias. -f, --force Force module insertion or removal. implies --force-modversions and --force-vermagic --force-modversion Ignore module's version --force-vermagic Ignore module's version magic Query Options: -R, --resolve-alias Only lookup and print alias and exit -D, --show-depends Only print module dependencies and exit -c, --showconfig Print out known configuration and exit -c, --show-config Same as --showconfig --show-modversions Dump module symbol version and exit --dump-modversions Same as --show-modversions --show-exports Only print module exported symbol versions and exit General Options: -n, --dry-run Do not execute operations, just print out -n, --show Same as --dry-run -C, --config=FILE Use FILE instead of default search paths -d, --dirname=DIR Use DIR as filesystem root for /lib/modules -S, --set-version=VERSION Use VERSION instead of `uname -r` -s, --syslog print to syslog, not stderr -q, --quiet disable messages -v, --verbose enables more messages -V, --version show version -h, --help show this help ===== See Also ===== * [[lsmod]] 로드된 모듈 확인 * [[insmod]]/[[rmmod]]