In case no internet or deploying a large number of Yun. The local packages repository will help.

mkdir -p ~/ipk
cd ~/ipk
wget http://downloads.arduino.cc/openwrtyun/1/packages/Packages
cat Packages | grep "Filename: " >downloadfile.txt
sed -i 's/Filename: /http:\/\/downloads.arduino.cc\/openwrtyun\/1\/packages\//g' downloadfile.txt

 

sudo apt-get install -y aria2
time aria2c -x 16 -i  downloadfile.txt

 

...
Status Legend:
(OK):download completed.

real    0m56.810s
user    0m3.708s
sys     0m6.676s


Change feed to local:

nano /etc/opkg.conf
#src/gz attitude_adjustment http://downloads.arduino.cc/openwrtyun/1/packages
src/gz local file:////mnt/sda1/packages
opkg update