← 返回命令列表

Linux command

pacman-database 命令

安全

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

常用示例

Example

sudo pacman -D --asdeps package

Example

sudo pacman -D --asexplicit package

Check

pacman -Dk

Example

pacman -Dkk

Example

pacman -Dkq

说明

pacman -D (database) operates directly on the package database, allowing modification of package attributes without reinstalling. It can change installation reason and verify database integrity.

参数

-D, --database
Operate on the package database
--asdeps
Mark packages as installed as dependencies
--asexplicit
Mark packages as explicitly installed
-k, --check
Check local database for consistency
-kk
Also check sync databases
-q, --quiet
Suppress normal output, show only errors

FAQ

What is the pacman-database command used for?

pacman -D (database) operates directly on the package database, allowing modification of package attributes without reinstalling. It can change installation reason and verify database integrity.

How do I run a basic pacman-database example?

Run `sudo pacman -D --asdeps package` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -D, --database do in pacman-database?

Operate on the package database