ilikenwf / apt-fast

apt-fast: A shellscript wrapper for apt that speeds up downloading of packages.
http://www.mattparnell.com/projects/apt-fast-and-axel-roughly-26x-faster-apt-get-installations-and-upgrades.html
GNU General Public License v3.0
1.96k stars 185 forks source link

Add package manager "bpkg/bpkg" support #187

Closed loynoir closed 3 years ago

gothicVI commented 3 years ago

As a general remark: It's always a good idea to describe the purpose and changes of a PR.

loynoir commented 3 years ago

Sorry, it's my newbee mistake. And thanks for the advise. 😊 Hope I use right English words.

Background

1) Python package can be installed using

pip install foobar

2) Nodejs package can be installed using

npm install [-g] foobar

With option "-g", means install to global. Without it, means install to current directory.

3) Seems bpkg has done the Package Manger part.

Purpose

Making apt-fast can be installed by package manager. To install apt-fast globally using:

bpkg install -g ilikenwf/apt-fast

To install apt-fast to curren directory using:

bpkg install ilikenwf/apt-fast

What I did

  1. Add package.json to make bpkg recognize.

  2. Update README.md

BTW

Apt-fast is a awesome tool with almost no dependecies, and improve a lot performance. Appreciate a lot for the project 😊

guekho64 commented 3 years ago

@loynoir Thank you for submitting this idea: Honestly, I didn't know about bpkg until now.

Pros
After taking a look at its GitHub repo, seems this project has been around since [May 2014](https://github.com/bpkg/bpkg/releases/tag/0.0.2), and its latest release, as of today 02/19/21, was on [January 2021](https://github.com/bpkg/bpkg/releases/tag/0.3.2), so I'd say it's a rather active project; adding support for it would increase `apt-fast` availability. at the expense of adding one lightweight file (`package.json`) Also, featuring `bpkg` support would help spread the word about it, given `apt-fast` repo gets visited many times a day.
Cons
On the other hand, searching for `bpkg` on both [Debian](https://www.debian.org/distrib/packages) and [Ubuntu](https://packages.ubuntu.com/) official package list, yields no results, so, in that sense, both `bpkg` and `apt-fast` are shell scripts which need to be installed from a script that you must manually run, with a little exception: `apt-fast` *does* have its own [Ubuntu PPA](https://code.launchpad.net/~apt-fast/+archive/stable), which means you can manage `apt-fast` installation/removal/upgrading directly from `apt`, which comes pre-installed with every major `dpkg` managed distro. Also, you'd end up installing two different programs.

â–· Summary

The way I see this, I think this may be kind of redundant, because, If you wanted to install apt-fast using bpkg, you'd had to do the following:

Instead, you could save yourself some time by doing:

And better yet, If you choose to install apt-fast by using its PPA, apt/dpkg will manage it for you automatically, without any 3th-party software.

loynoir commented 3 years ago

@guekho64 @gothicVI Thanks you guys for reply. Hope you have a good day. 😊

guekho64 commented 3 years ago

@loynoir Thanks: Wish you best luck 😄