{"id":14069740,"url":"https://github.com/bit101/version","last_synced_at":"2025-12-26T21:42:06.017Z","repository":{"id":44694330,"uuid":"289568687","full_name":"bit101/version","owner":"bit101","description":"What version do I have of ___?","archived":false,"fork":false,"pushed_at":"2024-07-02T12:07:57.000Z","size":132,"stargazers_count":46,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-13T07:16:07.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bit101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2020-08-22T21:19:57.000Z","updated_at":"2024-05-04T19:18:27.000Z","dependencies_parsed_at":"2024-08-13T07:25:44.362Z","dependency_job_id":null,"html_url":"https://github.com/bit101/version","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit101%2Fversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit101%2Fversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit101%2Fversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit101%2Fversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bit101","download_url":"https://codeload.github.com/bit101/version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228102201,"owners_count":17869795,"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":[],"created_at":"2024-08-13T07:07:11.162Z","updated_at":"2024-12-04T11:30:44.706Z","avatar_url":"https://github.com/bit101.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# version\nWhat version do I have of ___?\n\nYou've been there...\n\n```\njava -v // unrecognized option\njava -V // unrecognized option\njava --version // unrecognized option\njava --Version // unrecognized option\njava -Version // unrecognized option\njava -version // 1.8.0_262\n```\n\nThere's no standard.\n\n```\ngcc --version\nnode -v\nnode --version\npython -V\nperl -v\nperl --version\ngo version\nlua -v\nrustc --version\n```\n\n`version` is a simple, easily updateable script that tells you what version you are on. It has more than 200 apps registered with the syntax required to find version of that app. It will let you know what that syntax is, and then it'll run the command with that syntax and tell you what version you have (assuming the app is installed).\n\n```\nversion node\n# Command: node -v\n# v18.13.0\n```\n```\nversion gcc\n# Command: gcc --version\n# gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0\n# Copyright (C) 2023 ...\n```\n```\nversion vim\n# Command: nvim -version\n# NVIM v0.10.0-dev\n# Build type: ...\n```\n```\nversion nix\n# Command: nix --version\n# But 'nix' does not seem to be installed\n```\n\n## But wait, there's more!\n\n`version` also uses the package manager on your system to find the versions of programs and libraries that it doesn't know about itself. This puts the number of items that `version` can report the version of into the thousands. This includes libraries which are not directly executable, so don't have a version flag. \n\nThis feature currently supports the package managers: \n\n- `apt` (Linux - Debian, Ubuntu, and derivatives)\n- `pacman` (Linux - Arch, Manjaro, and deriviatives)\n- `dnf` (Linux - Fedora and derivatives)\n- `snap` (Linux)\n- `npm` (MacOS and Linux)\n- `pip` (MacOS and Linux)\n- `flatpak` (Linux)\n- `brew` (MacOS and Linux)\n- `macports` (MacOS)\n\nTodo (potential):\n- `Fink` - MacOS\n- `ZYpp` - OpenSUSE\n- `Portage` - Gentoo\n- `Nix` - Nix\n\nIf `version` doesn't know about the command, it will start searching through any of the package managers that are installed and report what it finds:\n\nExamples:\n\n```\nversion libxml2\n# version does not know about 'libxml2'\n#   checking apt...\n# libxml2 version: 2.9.14+dfsg-1.3\n```\n```\nversion systemd\n# version does not know about 'systemd'\n#   checking apt...\n# systemd version: 253.5-1ubuntu6\n```\n```\nversion usbutils\n# version does not know about 'setuptools'\n#   checking apt...\n#   checking snap...\n#   checking npm...\n#   checking pip...\n# setuptools version: 68.2.2\n```\n```\nversion foo\n# version does not know about 'foo'\n#   checking apt...\n#   checking snap...\n#   checking npm...\n#   checking pip...\n# version was unable to find any info on 'foo'\n```\n\nRead more here: [Package Manager Integration](https://github.com/bit101/version/wiki/Package-Manager-Integration)\n\n## Info\n\n- Current release: v1.5.2 (200+ recognized tools)\n\n## Installing / Uninstalling\n\n### Arch Linux:\n\nInstall through whatever AUR helper you use. e.g.:\n\n```\nyay -S version\n```\nor\n\n```\nparu -S version\n```\nor\n```\npamac install version\n```\n\n### Install Scripts:\n\n```\ncd version\nsudo ./install.sh\n```\n\nUninstall:\n\n```\ncd version\nsudo ./uninstall.sh\n```\n\nOr see [Installation](https://github.com/bit101/version/wiki/Installation) for more options.\n\n## More info in the [Wiki](https://github.com/bit101/version/wiki)\n\n- [Installation](https://github.com/bit101/version/wiki/Installation)\n\n- [How it Works](https://github.com/bit101/version/wiki/How-it-Works)\n\n- [Contributing](https://github.com/bit101/version/blob/master/CONTRIBUTING.md)\n\n- [FAQ](https://github.com/bit101/version/wiki/FAQ)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit101%2Fversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbit101%2Fversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit101%2Fversion/lists"}