← 返回命令列表

Linux command

installpkg 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Install

sudo installpkg [path/to/package.tgz]

Simulate

installpkg -warn [path/to/package.tgz]

Create

installpkg -m [package_name.tgz]

Install

sudo installpkg -r [package_name.tgz]

说明

installpkg installs Slackware packages, which are compressed tar archives containing files and installation scripts. It extracts package contents to the filesystem and runs any included doinst.sh installation script. Package metadata is stored in /var/log/packages, allowing tracking of installed files for later removal or upgrade. The tool handles the .tgz, .txz, .tbz, and .tlz package formats.

参数

-warn
Generate installation report without actually installing
-m _NAME_
Make a package from the current directory
-r _NAME_
Install current directory contents as a package
-menu
Interactive package browser
-priority _ORDER_
Set search order for packages

FAQ

What is the installpkg command used for?

installpkg installs Slackware packages, which are compressed tar archives containing files and installation scripts. It extracts package contents to the filesystem and runs any included doinst.sh installation script. Package metadata is stored in /var/log/packages, allowing tracking of installed files for later removal or upgrade. The tool handles the .tgz, .txz, .tbz, and .tlz package formats.

How do I run a basic installpkg example?

Run `sudo installpkg [path/to/package.tgz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -warn do in installpkg?

Generate installation report without actually installing