Giter VIP home page Giter VIP logo

app-fast's Introduction

Concurrent package downloader written in bash/zsh, for macOS, Linux, Android and Windows Msys2.

Inspired by apt-fast and powerpill.

The only dependency is aria2.

Usage

on macOS:

brew update
app-fast install vim tmux git
app-fast upgrade

on Ubuntu/Debian/Android Termux:

app-fast update
app-fast install vim tmux git -y
app-fast upgrade -y

on Archlinux/Manjaro/Windows Msys2:

app-fast -S vim tmux git
app-fast -Syu

Install

Just download app-fast and save it to somewhere like /usr/bin/app-fast.

On macOS, you should put it to /usr/local/bin/app-fast.

Make sure you have the permission to execute it chmod +x app-fast.

On Windows Msys2, you should put aria2.exe to your system path first, because Msys2 does not provide aria2 package.

Install for Linux

Wget

sudo wget https://raw.githubusercontent.com/app-fast/app-fast/master/app-fast -O /usr/bin/app-fast
sudo chmod +x /usr/bin/app-fast

Curl

sudo curl https://raw.githubusercontent.com/app-fast/app-fast/master/app-fast -o /usr/bin/app-fast
sudo chmod +x /usr/bin/app-fast

Aria2

sudo aria2c https://raw.githubusercontent.com/app-fast/app-fast/master/app-fast -d / -o /usr/bin/app-fast
sudo chmod +x /usr/bin/app-fast

Install for macOS

curl https://raw.githubusercontent.com/app-fast/app-fast/master/app-fast -o /usr/local/bin/app-fast
sudo chmod +x /usr/local/bin/app-fast

Install for Android Termux

pkg i curl -y
curl https://raw.githubusercontent.com/app-fast/app-fast/master/app-fast -o $PREFIX/bin/app-fast
chmod +x $PREFIX/bin/app-fast

What it does

  • Download packages faster
  • Upgrade packages faster
  • Support macOS homebrew
  • Support Ubuntu/Debian
  • Support Archlinux
  • Support Android Termux
  • Support Windows Msys2

What it doesn't

  • Uninstall a package
  • Search a package
  • Support Archlinux AUR
  • Support macOS homebrew tap
  • Support macOS homebrew bottles like bottles-science and bottle :unneeded
  • Support Ubuntu mirror protocol like mirror://mirrors.ubuntu.com/mirrors.txt
  • Support proxies

Note

  • With pacman v6.0 and onwards you can also set ParallelDownloads = 8 in the file /etc/pacman.conf
  • I don't have any apple devices so macOS port is experimental.
  • On Linux I use sed command, on macOS I use perl command.

Why not apt-fast or powerpill

  • I use it for docker containers and KVMs, only installing packages is needed.

License

Public Domain

app-fast's People

Contributors

joeky888 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

app-fast's Issues

Download only?

is it possible that it only downloads packages? without launching pacman then to install?

macOS instructions

The macOS install instructions need to say
sudo chmod +x /usr/local/bin/app-fast
as following the instructions as provided leaves the binary non-executable (macOS Mojave).

Possibility to change the cachedir?

how to change the destination of the pacman cachedir?

does the script necessarily move to /var/cache/pacman/pkg?

I would like to use it for the installation of the system, but I block "pacstrap /mnt base base-devel" because of this

-Sy works?

when I use the -Sy function I do not see the list of mirrors get updated

if the function is not in place possible to add it?

APT security is completely bypassed

APT assumes files in /var/cache/apt/archives to be verified doing only a very limited filesize sanity-check, NOT a security check. So just like in various apt-fast implementations using this app-fast implementation allows an attacker to easily hand out backdoors – but at least the download of the backdoors is "fast".

Users should have a look at the apt-transport-mirror manpage (included in upcoming Debian Buster, but earlier Debian versions have a similar implementation, just not the manpage. Ubuntu of course as well in various versions) for a fully supported way of downloading from multiple mirrors in parallel (rather than bashing a single server as a traffic jam is sheldomly solved by adding more cars).

This implementation might be "fixed" by dropping files into partial/ at least. Not a good solution, but it should work for the time being. I have not looked at the code handling the other package managers, but I guess they have similar issues (at least as far as those package managers have security features at all).

Disclaimer: I am an APT developer and consider Supercow my close friend. I have not and will not use this or any other of these so called accelerator scripts. This is hence not at all an endorsement and never will be one even if ALL bugs are fixed. This is also not a security review, in fact, I looked just 2 seconds. Got here via reddit and wondered why this script describes itself as "evil" – now I and hopefully you, too, know why.

Supercow wonders why so many people seem to be so fascinated by the Top Gun movie and is re-watching it now on german telvision…

I feel the need… The need for speed

Not work on macOS

My environment was macOS 10.13.4, with homebrew and aria2 already installed.
I followed your guide to install the app-fast on my machine, tried to execute to install something but returned nothing.
The expected installed app was not installed
I know the author did not have Mac machine, if test needed, I'd like to help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.