AXEL
untukmengantikan
WGET
,sayalangsungmencaritauapakahpaketitubisadigunakanjugauntukmenjalankanperintah
apt-get
.Ternyata memang paket AXEL bisa dikombinasikan untuk proses
update
dan
upgrade
update
dan
upgrade
,tentunyadenganmengubahdari
apt-get
menjadi
apt-fast
.Untukbisamenggunakannyakitamembutuhkansebuahscriptyang diberikan oleh pembuatnya. Berikut isi scriptnya:#!/bin/sh #apt-fast by Matt Parnellhttp://www.mattparnell.com, this thingis FOSS #please feel free to suggest improvments toadmin@mattparnell.com # Use this just like apt-get for faster packagedownloading. Make sure to have axel installed #If the first user enteredvariable string contains apt-get, and the second string entered is eitherinstall or dist-upgrade if echo “$1″ | grep -q “[upgrade]” || echo “$2″ | grep-q “[install]” || echo “$2″ | grep -q “[dist-upgrade]“; then echo “Working…”;#Go into the directory apt-get normally puts downloaded packages cd /var/cache/apt/archives/; #Have apt-get print the information, including theURI’s to the packages apt-get -y –print-uris $1 $2 $3 $4 > debs.list; #Stripout the URI’s, and download the packages with Axel for speediness egrep -o-e “(ht|f)tp://[^\']+” debs.list | xargs -l1 axel -a; #Perform the user’sreqested action via apt-get apt-get -y $1 $2 $3 $4; echo “Done! Make sureand check to see that the packages all were installed properly. If a packageis erred, run sudo apt-get autoclean and try installing it again without theuse of this script.”; elif echo “$1″ | grep -q “[*]“; then apt-get $1; else echo “Sorry, but you appear to be entering invalid options. You must use apt-getand one of apt-get’s options in order to use this script.”; fiSilakanambildisiniataupastedisembarangTeksEditordanberilahnama
apt-fast
sertalakukan
chmod +x apt-fast
padaberkastersebut.:yes:lalupindahkanberkas
apt-fast
tadi ke folder
/usr/bin
agar script itu bisa digunakan.InitampilansetelahsayamenggunakanscripttesebutyangdikombinasikandenganAXELuntuk kegiatan update dan upgrade:
Add a Comment