返回命令列表

Linux command

repo-add 命令

安全

May affect permissions or system state. Check the target first.

命令示例

Example

repo-add path/to/database.db.tar.gz

Add packages

repo-add path/to/database.db.tar.gz package1.pkg.tar.zst package2.pkg.tar.zst

Example

repo-add -R path/to/database.db.tar.gz *.pkg.tar.zst

Example

repo-add -q path/to/database.db.tar.gz *.pkg.tar.zst

Example

repo-add --nocolor path/to/database.db.tar.gz *.pkg.tar.zst

说明

repo-add is a package database maintenance utility for Arch Linux. It creates and updates local pacman repositories by adding packages to the database file. This enables installation of custom packages via pacman from local or network repositories.

参数

-R, --remove
Remove outdated package files from the repository
-q, --quiet
Minimize output except for warnings and errors
--nocolor
Disable colored output

FAQ

What is the repo-add command used for?

repo-add is a package database maintenance utility for Arch Linux. It creates and updates local pacman repositories by adding packages to the database file. This enables installation of custom packages via pacman from local or network repositories.

How do I run a basic repo-add example?

Run `repo-add path/to/database.db.tar.gz` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -R, --remove do in repo-add?

Remove outdated package files from the repository