← 返回命令列表

Linux command

scout 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search for a binary in available packages

scout bin [command_name]

Search for a Java class

scout java [class_name]

Search for an autoconf macro

scout autoconf [macro_name]

Search for a Python module

scout python [module_name]

Search using a specific repository

scout -r [repo_name] bin [command_name]

说明

Scout is an openSUSE command-line utility for searching packages by various attributes such as binaries, Java classes, Python modules, and autoconf macros. It powers the "command-not-found" feature in bash and zsh. When you type an unknown command, the shell automatically invokes scout to find which package provides it and suggests installation via zypper. Scout searches package indexes without requiring packages to be installed. The tool integrates with the zypp package management system and can query multiple repositories.

参数

bin
Search for binaries/executables in packages
java
Search for Java classes in packages
python
Search for Python modules in packages
autoconf
Search for autoconf macros in packages
-r _repo_, --repo=_repo_
Specify repository to search (default: zypp)
-p, --package
Display package names only
-l, --listrepos
List available repositories

FAQ

What is the scout command used for?

Scout is an openSUSE command-line utility for searching packages by various attributes such as binaries, Java classes, Python modules, and autoconf macros. It powers the "command-not-found" feature in bash and zsh. When you type an unknown command, the shell automatically invokes scout to find which package provides it and suggests installation via zypper. Scout searches package indexes without requiring packages to be installed. The tool integrates with the zypp package management system and can query multiple repositories.

How do I run a basic scout example?

Run `scout bin [command_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does bin do in scout?

Search for binaries/executables in packages