alternative cli util for update-alternatives

Overview

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 [email protected] /bin/python2.7
altb track [email protected] /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:

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

You might also like...
CLI for SQLite Databases with auto-completion and syntax highlighting
CLI for SQLite Databases with auto-completion and syntax highlighting

litecli Docs A command-line client for SQLite databases that has auto-completion and syntax highlighting. Installation If you already know how to inst

Postgres CLI with autocompletion and syntax highlighting
Postgres CLI with autocompletion and syntax highlighting

A REPL for Postgres This is a postgres client that does auto-completion and syntax highlighting. Home Page: http://pgcli.com MySQL Equivalent: http://

A supercharged AWS command line interface (CLI).
A supercharged AWS command line interface (CLI).

SAWS Motivation AWS CLI Although the AWS CLI is a great resource to manage your AWS-powered services, it's tough to remember usage of: 70+ top-level c

CLI program that allows you to change your Alacritty config with one command without editing the config file.
CLI program that allows you to change your Alacritty config with one command without editing the config file.

Pycritty Change your alacritty config on the fly! Installation: pip install pycritty By default, only the program itself will be installed, but you ca

QueraToCSV is a simple python CLI project to convert the Quera results file into CSV files.

Quera is an Iranian Learning management system (LMS) that has an online judge for programming languages. Some Iranian universities use it to automate the evaluation of programming assignments.

Simple CLI tool to track your cryptocurrency portfolio in real time.
Simple CLI tool to track your cryptocurrency portfolio in real time.

Simple tool to track your crypto portfolio in realtime. It can be used to track any coin on the BNB network, even obscure coins that are not listed or trackable by major portfolio tracking applications.

CLI utility to search and download torrents from major torrent sites
CLI utility to search and download torrents from major torrent sites

CLI Torrent Downloader About CLI Torrent Downloader provides convenient and quick way to search torrent magnet links (and to run associated torrent cl

Write Django management command using the click CLI library

Django Click Project information: Automated code metrics: django-click is a library to easily write Django management commands using the click command

Comments
  • Feature: Support env vars + schema command

    Feature: Support env vars + schema command

    • Command tag type now supports env vars injection
    • Much better schema validation
    • Added a schema command altb schema (influenced by kubectl explain command) to describe the schema and allow writing config.
    enhancement 
    opened by IamShobe 0
Releases(v0.4.2)
  • v0.4.2(Oct 11, 2022)

  • v0.4.1(Jul 26, 2022)

  • v0.4.0(Jul 23, 2022)

  • 0.3.1(Mar 26, 2022)

  • 0.3.0(Mar 20, 2022)

    BREAKING CHANGES

    • config now moved to ~/.config/altb/config.yaml
    • config structure MAJOR change - format is now as follows:
      binaries:
         app_name:
             name: app_name
             selected: 1.0.0
             tags:
                1.0.0:
                    description: some description
                    kind: link  # this is added every old type is link type
                    spec:
                       path: /path/to/binary
      
    • Command altb track ... now changed to altb track path ....

    Additions:

    • Support copying tracked file using altb track path <app_name>@<tag> <path> --copy, versions will be saved at $HOME/.local/altb/versions.
    • Support tracking commands using altb track command <app_name>@<tag> "<command>" [-w <working_directory>]

    Full Changelog: https://github.com/IamShobe/altb/compare/0.2.2...0.3.0

    Source code(tar.gz)
    Source code(zip)
  • 0.2.2(Dec 12, 2021)

  • 0.2.0(Dec 12, 2021)

    • allows for tracking binaries and easily swapping between links
    • allows for renaming tags of binaries
    • detects drifts and exits

    Full Changelog: https://github.com/IamShobe/altb/commits/0.2.0

    Source code(tar.gz)
    Source code(zip)
Owner
Elran Shefer
Programming is my passion! Inventing new applications whenever I'm bored :P
Elran Shefer
Sink is a CLI tool that allows users to synchronize their local folders to their Google Drives. It is similar to the Git CLI and allows fast and reliable syncs with the drive.

Sink is a CLI synchronisation tool that enables a user to synchronise local system files and folders with their Google Drives. It follows a git C

Yash Thakre 16 May 29, 2022
flora-dev-cli (fd-cli) is command line interface software to interact with flora blockchain.

Install git clone https://github.com/Flora-Network/fd-cli.git cd fd-cli python3 -m venv venv source venv/bin/activate pip install -e . --extra-index-u

null 14 Sep 11, 2022
AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

Rafael Torres 2 Dec 10, 2021
Python-Stock-Info-CLI: Get stock info through CLI by passing stock ticker.

Python-Stock-Info-CLI Get stock info through CLI by passing stock ticker. Installation Use the following command to install the required modules at on

Ayush Soni 1 Nov 5, 2021
A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool

Privateer A simple CLI based any Download Tool, that find files and let you stream or download thorugh WebTorrent CLI or Aria or any command tool How

Shreyash Chavan 2 Apr 4, 2022
Yts-cli-streamer - A CLI movie streaming client which works on yts.mx API written in python

YTSP It is a CLI movie streaming client which works on yts.mx API written in pyt

null 1 Feb 5, 2022
[WIP]An ani-cli like cli tool for movies and webseries

mov-cli A cli to browse and watch movies. Installation This project is a work in progress. However, you can try it out python git clone https://github

null 166 Dec 30, 2022
Simple tool, to update linux kernel on ubuntu

Kerbswap Simple tool, to update linux kernel on ubuntu Information At the moment, this tool only supports "Ubuntu" distributions, but will be expanded

dword 1 Oct 31, 2021
Dead simple CLI tool to try Python packages - It's never been easier! :package:

try - It's never been easier to try Python packages try is an easy-to-use cli tool to try out Python packages. Features Install specific package versi

Timo Furrer 659 Dec 28, 2022