LinuxCommandLibrary

installpkg

installs Slackware packages, which are compressed tar archives containing

TLDR

Install a Slackware package
$ sudo installpkg [path/to/package.tgz]
copy
Simulate installation and report to stdout
$ installpkg -warn [path/to/package.tgz]
copy
Create a package from current directory
$ installpkg -m [package_name.tgz]
copy
Install contents of current directory as named package
$ sudo installpkg -r [package_name.tgz]
copy

SYNOPSIS

installpkg [options] package

DESCRIPTION

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.

PARAMETERS

-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

CAVEATS

Slackware-specific package tool. Does not handle dependencies automatically. Overwrites existing files without warning unless using -warn option.

HISTORY

installpkg has been part of Slackware Linux since its early releases in 1993. Slackware's package management is intentionally simple, preferring manual dependency handling to give users full control.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard