{"id":15444679,"url":"https://github.com/iamshobe/altb","last_synced_at":"2025-04-19T20:35:38.747Z","repository":{"id":48382816,"uuid":"437426308","full_name":"IamShobe/altb","owner":"IamShobe","description":"alternative cli util for update-alternatives","archived":false,"fork":false,"pushed_at":"2024-09-03T14:46:09.000Z","size":67,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T13:17:08.647Z","etag":null,"topics":["cli","python","shell","update-alternatives","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IamShobe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-12T01:24:13.000Z","updated_at":"2024-08-16T21:40:25.000Z","dependencies_parsed_at":"2025-03-03T01:43:03.741Z","dependency_job_id":null,"html_url":"https://github.com/IamShobe/altb","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamShobe%2Faltb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamShobe%2Faltb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamShobe%2Faltb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamShobe%2Faltb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IamShobe","download_url":"https://codeload.github.com/IamShobe/altb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249795191,"owners_count":21326776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","python","shell","update-alternatives","utility"],"created_at":"2024-10-01T19:42:16.530Z","updated_at":"2025-04-19T20:35:38.706Z","avatar_url":"https://github.com/IamShobe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# altb\r\naltb is a cli utility influenced by `update-alternatives` of ubuntu.  \r\nLinked paths are added to `$HOME/.local/bin` according to [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).  \r\nConfig file is located at `$HOME/.config/altb/config.yaml`.\r\n\r\n### How to start?\r\n\r\n**Must use Python \u003e 3.9**\r\nexecute:\r\n```bash\r\npipx install altb\r\n```\r\n\r\nto track new binary use:\r\n```bash\r\naltb track path \u003capp_name\u003e@\u003capp_tag\u003e /path/to/binary\r\n```\r\nfor example:\r\n```bash\r\naltb track path python@2.7 /bin/python2.7\r\naltb track path python@3.8 /bin/python3.8\r\n# altb track path python ~/Downloads/python # will also work and generate a new hash for it\r\n```\r\n\r\nList all tracked versions:\r\n```bash\r\n$ altb list -a\r\npython\r\n|----   2.7 - /bin/python2.7\r\n|----   3.8 - /bin/python3.8\r\n```\r\n\r\nUse specific version:\r\n```bash\r\naltb use \u003capp_name\u003e[@\u003capp_tag\u003e]\r\n```\r\n\r\nexample:\r\n```bash\r\naltb use python@2.7\r\n```\r\nthis will link the tracked path to `~/.local/bin/\u003capp_name\u003e` in this case - `~/.local/bin/python`\r\n\r\nCopy specific standalone binary automatically to `~/.local/share/altb/versions/\u003capp_name\u003e/\u003capp_name\u003e_\u003ctag\u003e`\r\n```bash\r\naltb track path helm@3 ~/Downloads/helm --copy\r\n```\r\n\r\nYou can run custom commands using:\r\n```bash\r\naltb track command special_command@latest \"echo This is a command\"\r\n```\r\nthis especially useful for latest developments, example:\r\n```bash\r\naltb track command special_command@latest \"go run ./cmd/special_command\" --working-directory \"$HOME/special_command\"\r\n```\r\n\r\n\r\n## Docs\r\n### Migrations\r\n- [Migrate to v0.5.0 and above from lower versions](./docs/migrations/migrate_to_0_5_0.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshobe%2Faltb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamshobe%2Faltb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshobe%2Faltb/lists"}