← 返回命令列表

Linux command

slackpkg 命令

文本

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

常用示例

Update the package list

slackpkg update

Search for a package

slackpkg search [package_name]

Install a package

slackpkg install [package_name]

Upgrade a package

slackpkg upgrade [package_name]

Upgrade all installed packages

slackpkg upgrade-all

Remove a package

slackpkg remove [package_name]

Install new packages

slackpkg install-new

Clean system

slackpkg clean-system

说明

slackpkg is an automated tool for managing Slackware packages over the network. It downloads, installs, upgrades, and removes packages from official Slackware mirrors. Before use, configure a mirror in /etc/slackpkg/mirrors by uncommenting one entry. Run slackpkg update to download the package list. The blacklist feature in /etc/slackpkg/blacklist prevents specific packages from being modified. slackpkg provides both menu-based and command-line interfaces. Set DIALOG=off in /etc/slackpkg/slackpkg.conf for console-only operation.

参数

update
Download and update the package list from mirrors
update gpg
Update GPG key for package verification
install _package_
Install specified package(s)
upgrade _package_
Upgrade specified package(s)
upgrade-all
Upgrade all installed packages to newest versions
remove _package_
Remove specified package(s)
reinstall _package_
Reinstall specified package(s)
search _pattern_
Search for packages matching pattern
file-search _file_
Search for packages containing specified file
info _package_
Display information about a package
install-new
Install new packages added to Slackware since installation
clean-system
Remove packages not in official Slackware distribution
blacklist _package_
Add package to blacklist
new-config
Find and merge new configuration files

FAQ

What is the slackpkg command used for?

slackpkg is an automated tool for managing Slackware packages over the network. It downloads, installs, upgrades, and removes packages from official Slackware mirrors. Before use, configure a mirror in /etc/slackpkg/mirrors by uncommenting one entry. Run slackpkg update to download the package list. The blacklist feature in /etc/slackpkg/blacklist prevents specific packages from being modified. slackpkg provides both menu-based and command-line interfaces. Set DIALOG=off in /etc/slackpkg/slackpkg.conf for console-only operation.

How do I run a basic slackpkg example?

Run `slackpkg update` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does update do in slackpkg?

Download and update the package list from mirrors