← 返回命令列表

Linux command

pacman 命令

安全

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

常用示例

Synchronize

sudo pacman -Syu

Install

sudo pacman -S package

Remove

sudo pacman -Rs package

Search

pacman -Ss "search_pattern"

Example

pacman -F "file_name"

Example

pacman -Qe

Example

pacman -Qtdq

Empty

sudo pacman -Scc

说明

pacman is the package manager for Arch Linux. It combines a simple binary package format with an easy-to-use build system, tracking installed packages with dependency support, package groups, and synchronization with remote repositories.

FAQ

What is the pacman command used for?

pacman is the package manager for Arch Linux. It combines a simple binary package format with an easy-to-use build system, tracking installed packages with dependency support, package groups, and synchronization with remote repositories.

How do I run a basic pacman example?

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

Where can I find more pacman examples?

This page includes 8 examples for pacman, plus related commands for nearby Linux tasks.