LinuxCommandLibrary

prt-get

Install, update, and remove software packages

TLDR

Install a package

$ prt-get install [package]
copy

Install a package with dependency handling
$ prt-get depinst [package]
copy

Update a package manually
$ prt-get upgrade [package]
copy

Remove a package
$ prt-get remove [package]
copy

Upgrade the system from the local ports tree
$ prt-get sysup
copy

Search the ports tree
$ prt-get search [query]
copy

Search for a file in a package
$ prt-get fsearch [file]
copy

SYNOPSIS

prt-get [options] command [package ...]

PARAMETERS

-f, --force
    Force install/remove, override conflicts/errors (use cautiously)

-i, --info
    Show detailed package info without installing

-s, --simulate
    Dry-run: preview actions without changes

-v, --verbose
    Increase output verbosity

-V, --version
    Print prt-get version

-h, --help
    Display help/usage

DESCRIPTION

prt-get is the front-end package management tool for CRUX Linux, handling installation, updates, queries, and maintenance of packages built from the ports collection. Designed for simplicity and speed, it mirrors tools like apt-get with automatic dependency resolution via the PRT dependency cache. Users build native .pkg.tar.gz packages using pkgmk(8), then use prt-get to install them system-wide.

Core workflows include updating the ports tree with ports -u, followed by prt-get sysup for full system upgrades resolving deps automatically. Other functions cover searching ports, listing installed/available packages, fetching sources, cleaning caches, and simulating operations. It enforces CRUX's DIY philosophy: ports provide PKGBUILD-like recipes, pkgmk compiles, prt-get deploys.

Root privileges are typically required for installs/removals. Verbose output, simulation, and force flags aid safe usage. Integrates with pkgutil(8) for package queries post-install.

CAVEATS

Requires root for most ops.
Run prt-get sysup -s first to preview system updates.
Dependency cache must be current via prt-get update.

COMMON COMMANDS

update: Update dependency cache.
sysup: Full system upgrade with deps.
depinst pkg: Install pkg + dependencies.
search term: Find ports matching term.
list [installed|avail]: List packages.

WORKFLOW

1. ports -u (update ports).
2. prt-get update (rebuild cache).
3. prt-get sysup -s (simulate).
4. prt-get sysup (apply).

HISTORY

Developed by Per Lidén for CRUX Linux; introduced in CRUX 2.3 (2006) to add apt-like dep resolution atop manual pkgmk builds. Evolved with CRUX releases for better caching, simulation, and ports integration.

SEE ALSO

pkgmk(8), pkgutil(8), ports(7)

Copied to clipboard