Linux command
spi 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Search
spi [search_terms]
Update
sudo spi -u
Install
sudo spi -i [package_name]
Simulate
spi -s -i [package_name]
Upgrade
sudo spi -U
Show information
spi --show [package_name]
Clean
sudo spi --clean
说明
spi (Salix Package Installer) is a command-line meta package manager for Salix Linux that wraps slapt-get and slapt-src. It provides unified access to both binary packages and SlackBuilds through a single interface. When searching, spi queries both the slapt-get binary package cache and the slapt-src SlackBuild cache. When installing, it prefers binary packages: if none is available it falls back to building from source via slapt-src, and when a SlackBuild has dependencies that exist as binary packages it pulls those through slapt-get rather than rebuilding them. Only basic functionality is exposed; for advanced features the underlying slapt-get and slapt-src tools should be used directly.
参数
- --search _STRING(S)_
- Search both the package and SlackBuild databases. Default action when spi is called with one or more strings and no other options. Regular expressions are supported.
- --show _PACKAGE(S)_
- Show details for the named packages or SlackBuilds (runs slapt-get --show and slapt-src --show).
- --clean
- Purge cached packages and SlackBuild build directories. Requires root.
- -u, --update
- Update the package and SlackBuild local caches. Requires root.
- -U, --upgrade
- Upgrade all installed packages using slapt-get --upgrade. Requires root.
- -i, --install _PACKAGE(S)_
- Install the named packages or SlackBuilds. Binary packages are preferred; otherwise the SlackBuild is built and installed. Requires root.
- -s, --simulate
- Used with --install: simulate the operation, listing packages and SlackBuilds (including dependencies) that would be installed.
- -n, --no-colour
- Disable coloured output when searching.
- -h
- Print a brief usage message and exit.
FAQ
What is the spi command used for?
spi (Salix Package Installer) is a command-line meta package manager for Salix Linux that wraps slapt-get and slapt-src. It provides unified access to both binary packages and SlackBuilds through a single interface. When searching, spi queries both the slapt-get binary package cache and the slapt-src SlackBuild cache. When installing, it prefers binary packages: if none is available it falls back to building from source via slapt-src, and when a SlackBuild has dependencies that exist as binary packages it pulls those through slapt-get rather than rebuilding them. Only basic functionality is exposed; for advanced features the underlying slapt-get and slapt-src tools should be used directly.
How do I run a basic spi example?
Run `spi [search_terms]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --search _STRING(S)_ do in spi?
Search both the package and SlackBuild databases. Default action when spi is called with one or more strings and no other options. Regular expressions are supported.