← 返回命令列表

Linux command

xbps-reconfigure 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Reconfigure a package

sudo xbps-reconfigure [package_name]

Force reconfigure a package

sudo xbps-reconfigure -f [package_name]

Reconfigure all packages

sudo xbps-reconfigure -a

Reconfigure kernel

sudo xbps-reconfigure -f linux[5.15]

Verbose output

sudo xbps-reconfigure -v [package_name]

Reconfigure in alternate root

sudo xbps-reconfigure -r [/mnt] [package_name]

说明

xbps-reconfigure runs post-installation configuration scripts for packages on Void Linux. It's used to configure packages that weren't properly configured or to reconfigure after changing configuration files. The tool is useful for recovering from interrupted installations, reconfiguring after manual config changes, or rebuilding kernel modules. By default, only unconfigured packages are processed; use -f to force reconfiguration. Common use cases include reconfiguring the kernel after updates, rerunning DKMS module builds, and fixing packages with configuration issues.

参数

-a, --all
Reconfigure all packages.
-f, --force
Force reconfiguration even if already configured.
-r _rootdir_
Use alternate root directory.
-v, --verbose
Verbose output.
-d, --debug
Debug mode.
-h, --help
Display help.
-V, --version
Display version.

FAQ

What is the xbps-reconfigure command used for?

xbps-reconfigure runs post-installation configuration scripts for packages on Void Linux. It's used to configure packages that weren't properly configured or to reconfigure after changing configuration files. The tool is useful for recovering from interrupted installations, reconfiguring after manual config changes, or rebuilding kernel modules. By default, only unconfigured packages are processed; use -f to force reconfiguration. Common use cases include reconfiguring the kernel after updates, rerunning DKMS module builds, and fixing packages with configuration issues.

How do I run a basic xbps-reconfigure example?

Run `sudo xbps-reconfigure [package_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in xbps-reconfigure?

Reconfigure all packages.