Linux command
pacman-s 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
tldr pacman sync
说明
pacman -S is the short form of pacman --sync, which synchronizes packages. It handles installing packages from repositories, updating the package database, and performing system upgrades.
参数
- -y, --refresh
- Download a fresh copy of the master package databases from the server.
- -u, --sysupgrade
- Upgrade all out-of-date packages.
- -s, --search _regexp_
- Search package names and descriptions in sync databases.
- -i, --info
- Display detailed information for packages in the sync database.
- -c, --clean
- Remove old packages from the cache directory.
- -l, --list
- List all packages in the specified repositories.
- -g, --groups
- Display members of a package group.
- -q, --quiet
- Show less information for query and search results.
- --needed
- Do not reinstall packages that are already up-to-date.
- --asdeps
- Install packages as non-explicitly installed (as dependencies).
- --overwrite _glob_
- Overwrite conflicting files matching the given glob pattern.
- --downloadonly, -w
- Download packages without installing them.
- --ignore _package_
- Skip upgrades for the specified package.
FAQ
What is the pacman-s command used for?
pacman -S is the short form of pacman --sync, which synchronizes packages. It handles installing packages from repositories, updating the package database, and performing system upgrades.
How do I run a basic pacman-s example?
Run `tldr pacman sync` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -y, --refresh do in pacman-s?
Download a fresh copy of the master package databases from the server.