Linux command
pacman-files 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Update
sudo pacman -Fy
Find
pacman -F filename
Example
pacman -Fx 'regex'
Example
pacman -Fq filename
List
pacman -Fl package
说明
pacman -F (files) queries the files database to find which packages own specific files or to list files contained in packages. This works even for packages that are not installed.
参数
- -F, --files
- Query the files database
- -y, --refresh
- Download fresh files database from the server
- -l, --list
- List files owned by the specified package
- -x, --regex
- Interpret the search pattern as a regular expression
- -q, --quiet
- Show only package names without repository
FAQ
What is the pacman-files command used for?
pacman -F (files) queries the files database to find which packages own specific files or to list files contained in packages. This works even for packages that are not installed.
How do I run a basic pacman-files example?
Run `sudo pacman -Fy` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -F, --files do in pacman-files?
Query the files database