Skip to main content

Cli tool for tracking over binaries and easily swapping between them

Project description

altb

altb is a cli utility influenced by update-alternatives of ubuntu.
Linked paths are added to $HOME/.local/bin according to XDG Base Directory Specification

How to start?

execute:

pipx install altb

to track new binary use:

altb track <app_name>@<app_tag> /path/to/binary

for example:

altb track python@2.7 /bin/python2.7
altb track python@3.8 /bin/python3.8
# altb track python ~/Downloads/python # will also work and generate a new hash for it

List all tracked versions:

$ altb list -a
python
|----   2.7 - /bin/python2.7
|----   3.8 - /bin/python3.8

Use specific version:

altb use <app_name>[@<app_tag>]

example:

altb use python@2.7

this will link the tracked path to ~/.local/bin/<app_name> in this case - ~/.local/bin/python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

altb-0.2.2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

altb-0.2.2-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page