How to get apt-get to call apt-fast?
Have been using apt-fast for a while now and really liking it. In case you don't know it is useful to speed up apt-get. However, I have a few questions regarding apt-fast:
I would like to make any call to
apt-getrunapt-fast. I'm assuming I can put a script called "apt-get" in my~/binfolder that executesapt-fast... so maybe I'm answering my own question on this first one.Would a script like this work?
#!/bin/bash exec apt-fast $@ exit 0apt-fastdoes not seem to speed up the very thing I wish it sped up most -apt-get updateI would like
apt-fastto makeapt-get updaterun faster. Is this possible?
2 Answers
You can create an alias for apt-get in your home directory. To do so, follow these:
Open a terminal and do this command:
touch ~/.bash_aliases; gedit ~/.bash_aliasesIn the new opened file, type these and save and exit.
alias apt-get='apt-fast'
Then, whenever you run apt-get, apt-fast will run instead
For more info, see this page
apt-fast does not make 'apt-get update' faster. If you'll check the code, e.g.
vi /usr/bin/apt-fastYou'll find the line:
if echo "$@" | grep -q "upgrade\|install\|dist-upgrade"; then
...
else
apt-get "@"Which means that apt-fast does nothing in all other commands except in upgrade, install, and dist-upgrade.