LinuxCommandLibrary

upgradepkg

Upgrade Slackware packages

TLDR

Upgrade a package

$ sudo upgradepkg [path/to/package.tgz]
copy
Install if not present
$ sudo upgradepkg --install-new [path/to/package.tgz]
copy
Reinstall package
$ sudo upgradepkg --reinstall [path/to/package.tgz]
copy
Dry run preview
$ upgradepkg --dry-run [path/to/package.tgz]
copy
Verbose upgrade
$ sudo upgradepkg --verbose [path/to/package.tgz]
copy

SYNOPSIS

upgradepkg [OPTIONS] PACKAGE...

DESCRIPTION

upgradepkg upgrades Slackware packages by replacing existing packages with new versions. It removes the old package and installs the new one, preserving configuration where possible.
Part of the Slackware pkgtools package management system.

PARAMETERS

--install-new

Install package if not already present
--reinstall
Reinstall even if same version exists
--dry-run
Preview without making changes
--verbose
Show detailed progress

CAVEATS

Slackware specific. Requires root privileges. Does not handle dependencies. Old package is removed before new one is installed.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community