← 返回命令列表

Linux command

snap 命令

文件

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

常用示例

Search for a package

snap find [query]

Install a package

snap install [package]

Install with classic confinement

snap install --classic [package]

Update all packages

snap refresh

List installed snaps

snap list

Show detailed info about a snap

snap info [package]

Remove a package

snap remove [package]

Revert to a previous version

snap revert [package]

说明

snap is the command-line interface for managing snap packages, which are self-contained software bundles that include all dependencies. Snaps are sandboxed, automatically updated, and work across many Linux distributions.

参数

find _query_
Search for snaps matching the query
install _snap_
Install a snap package
remove _snap_
Remove an installed snap
refresh _snap_
Update a specific snap or all snaps
list
List installed snaps
info _snap_
Show detailed information about a snap
changes
Show recent changes and operations
connections _snap_
Show interface connections
--channel _channel_
Specify the channel (track/risk/branch) for install or refresh
revert _snap_
Revert a snap to its previous version
disable _snap_
Disable a snap without removing it
enable _snap_
Re-enable a disabled snap
--channel _channel_
Specify the channel (track/risk/branch) for install or refresh
--classic
Install with classic confinement (full system access)
--devmode
Install in development mode (no confinement)
--dangerous
Install a local snap file without signature verification

FAQ

What is the snap command used for?

snap is the command-line interface for managing snap packages, which are self-contained software bundles that include all dependencies. Snaps are sandboxed, automatically updated, and work across many Linux distributions.

How do I run a basic snap example?

Run `snap find [query]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does find _query_ do in snap?

Search for snaps matching the query