Linux command
snap.pkg 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Search
snap find [query]
Install
snap install [package]
Update
snap refresh [package]
Example
snap refresh [package] --channel=[channel]
Example
snap refresh
List
snap list
Remove
snap remove [package]
Example
snap changes
说明
snap is the package manager for Snap packages, self-contained applications that work across Linux distributions. Snaps include all dependencies and run in sandboxed environments for security isolation. The Snap store provides thousands of applications including browsers, development tools, and server software. Snaps update automatically in the background and can be rolled back to previous versions if needed.
参数
- find _query_
- Search for snaps in the store
- install _package_
- Install a snap package
- remove _package_
- Uninstall a snap package
- refresh _package_
- Update snap(s) to latest version
- list
- Display installed snaps
- info _package_
- Show detailed snap information
- changes
- List recent system changes
- revert _package_
- Revert snap to previous version
- enable _package_
- Enable a disabled snap
- disable _package_
- Disable a snap
- services
- Query service status
- start/stop/restart _service_
- Control snap services
- connect _plug_ _slot_
- Connect interfaces
- disconnect _plug_ _slot_
- Disconnect interfaces
- --channel _channel_
- Specify channel (stable, candidate, beta, edge)
- --classic
- Allow classic confinement
- --devmode
- Enable development mode
FAQ
What is the snap.pkg command used for?
snap is the package manager for Snap packages, self-contained applications that work across Linux distributions. Snaps include all dependencies and run in sandboxed environments for security isolation. The Snap store provides thousands of applications including browsers, development tools, and server software. Snaps update automatically in the background and can be rolled back to previous versions if needed.
How do I run a basic snap.pkg 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.pkg?
Search for snaps in the store