The Fidelix Linux Distribution

Simple, Stable, and Secure

PKGTOOL(8) Linux System Administrator's Manual PKGTOOL(8)

pkgtool - useful subcommands for package creation and management

pkgtool <SUBCOMMAND> [OPTIONS]

Provides several useful subcommand utilities for package creation and management. Each subcommand is fully documented further down.

Subcommands:

help
Displays a help message.
version
Displays the version of pkgtools.
preserve-file
Preserves a configuration file when making a packags so it is not overwritten on package upgrades.
install-new-file
Installs a new file without blindly overwriting any prexisting old files. This is most useful for preserving config files.

Usage: pkgtool preserve-file <FILENAME>

FILENAME should be the name of the original file (without a .new suffix).

Preserves a configuration file when making a packags so it is not overwritten on package upgrades. It does this by adding a .new suffix to the file. These files can then be installed using the install-new-file subcommand, taking into account any prexisting files.

Usage: pkgtool install-new-file <FILENAME>

FILENAME should be the name of the original file (without a .new suffix).

Installs a new configuration file that was previously marked for preservation with preserve-file. It does this by first checking if there is a prexisting file. If there is not, it installs the .new file. If there is, it checks if the files differ. If they do not, the .new file is deleted. If they do, it proceeds differently depending on the value of the NEW_FILE_ACTION environment variable:

KEEP
Keep the existing file in place and leave the .new file for consideration later. This is the default if NEW_FILE_ACTION is not set.

REPLACE
Replaces the existing file with the new one, saving the original file with a .old suffix.

OVERWRITE
Blindly overwrites the existing file without saving a copy of it.

pkgtool was written by Scott Court (z5t1@z5t1.com).

makepkg(8) installpkg(8) removepkg(8) upgradepkg(8)
2020-03-24 Fidelix 0.2