Skip to main content

Bin package manager, a package manager based on Github release

Project description

bin package manager

English | 简体中文

Bin package manager (BPM) is a Github release-based package manager that allows users to install and manage binaries from any Github release.

BPM is currently supported on Linux and Windows, python >= 3.10.

[!CAUTION] Risk Warning: BPM on Linux may damage your computer. By using BPM to install software, you accept this risk and trust third-party Github release packagers.

Why use it?

In non-rolling release Linux distributions, the version of softwares in official source are often too low to use some new features.

Rolling distributions, such as Archlinux, are also unable to install software from the AUR as root.

A common way to manage packages on Windows is scoop, but it requires the packager to maintain a "manifest" list.

Installation

BPM needs to be installed to root user.

pip

Linux

sudo pip install bin-package-manager --break-system-packages
sudo bpm

Note the risk of potentially breaking system packages.

Windows

pip install bin-package-manager
bpm

pipx

You can use pipx to install BPM.

sudo pipx install bin-package-manager

pipx will only install for the current user, so sudo is required. Alternatively, you can track on this issue and use other methods mentioned there.

Source code

If you don't want to use pipx, you can also download and use the source code.

BPM requires these libs, please install them manually.

git clone https://github.com/lxl66566/bpm.git
cd bpm
python3 -m bpm
# or use poetry to install dependencies and run: `poetry install && poetry run python -m bpm`

Usage

  • Install: bpm i <package>
  • Run bpm -h for more help.

How it works

Linux

BPM automatically determines the file structure in the asset and installs it to the appropriate location on the system. The current installation is like:

  1. install binary
  2. merge the lib, include, share, man, bin directories into the system
  3. install completions

BPM automatically adds the .old suffix to existing files to avoid overwrite. The .old files will be restored in uninstalling.

Windows

BPM downloads asset into %userprofile%/bpm/app/<name> and creates shortcuts and cmd runner for the executables to %userprofile%/bpm/bin, which is added to %path%.

Develop

git clone https://github.com/lxl66566/bpm.git
cd bpm
poetry install
poetry run python -m unittest bpm/**/*.py  # run tests

TODO

  • no pre release
  • try install
  • windows support

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

bin_package_manager-2.1.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

bin_package_manager-2.1.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file bin_package_manager-2.1.2.tar.gz.

File metadata

  • Download URL: bin_package_manager-2.1.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Windows/11

File hashes

Hashes for bin_package_manager-2.1.2.tar.gz
Algorithm Hash digest
SHA256 2adde7dafd93c188d89954cc8f0defe92bf484b5850f626620148da78d6b7773
MD5 b7190e3a41d2e6f774d3bd8119952a64
BLAKE2b-256 12bbb5d7a31f74bb67f2b04a53883b642747735c6fbf20fbac79a554d45262db

See more details on using hashes here.

File details

Details for the file bin_package_manager-2.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for bin_package_manager-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0aaecd6d585fe8ee601ef13841264db691ce2de356831d31916a4a5a61b3d7b9
MD5 4e48e8fb94bf81cd9dd995c480f3c854
BLAKE2b-256 9ab3a574161beb11b0455c724eba64ade800e497866072f7f2bcbf499c1defcc

See more details on using hashes here.

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