Advertisement
Burnfaker

Untitled

May 28th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. >> apt-fast install blender
  2. # Config File
  3. source /etc/apt-fast.conf
  4. + source /etc/apt-fast.conf
  5. ###################################################################
  6. # CONFIGURATION OPTIONS
  7. ###################################################################
  8.  
  9. # Maximum number of connections
  10. _MAXNUM=5
  11. ++ _MAXNUM=5
  12.  
  13. # Use aptitude or apt-fast?
  14. # Note that for outputting the package URI list, we always use apt-get
  15. # ...since aptitude can't do this
  16. _APTMGR=apt-get
  17. ++ _APTMGR=apt-get
  18.  
  19. # Note that the manager you choose has other options - feel free
  20. # to setup your own _DOWNLOADER or customize one of the ones below
  21. # they're simply here as examples, and to provide sane defaults
  22.  
  23. # Download manager selection
  24. # (choose one by uncommenting one #_DOWNLOADER line)
  25.  
  26. # aria2c:
  27. #_DOWNLOADER='aria2c -c -j ${_MAXNUM} --input-file=/tmp/apt-fast.list --connect-timeout=600 --timeout=600 -m0'
  28.  
  29. # aria2c with a proxy (set username, proxy, ip and password!)
  30. #_DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} --http-proxy=http://username:password@proxy_ip:proxy_port -i apt-fast.list'
  31.  
  32. # axel:
  33. _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' # axel
  34. ++ _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a'
  35.  
  36. # Check for proper priveliges
  37. [ "`whoami`" = root ] || exec sudo "$0" "$@"
  38. whoami
  39. ++ whoami
  40. + '[' burnfaker = root ']'
  41. + exec sudo /usr/sbin/apt-fast install blender
  42. # Config File
  43. source /etc/apt-fast.conf
  44. + source /etc/apt-fast.conf
  45. ###################################################################
  46. # CONFIGURATION OPTIONS
  47. ###################################################################
  48.  
  49. # Maximum number of connections
  50. _MAXNUM=5
  51. ++ _MAXNUM=5
  52.  
  53. # Use aptitude or apt-fast?
  54. # Note that for outputting the package URI list, we always use apt-get
  55. # ...since aptitude can't do this
  56. _APTMGR=apt-get
  57. ++ _APTMGR=apt-get
  58.  
  59. # Note that the manager you choose has other options - feel free
  60. # to setup your own _DOWNLOADER or customize one of the ones below
  61. # they're simply here as examples, and to provide sane defaults
  62.  
  63. # Download manager selection
  64. # (choose one by uncommenting one #_DOWNLOADER line)
  65.  
  66. # aria2c:
  67. #_DOWNLOADER='aria2c -c -j ${_MAXNUM} --input-file=/tmp/apt-fast.list --connect-timeout=600 --timeout=600 -m0'
  68.  
  69. # aria2c with a proxy (set username, proxy, ip and password!)
  70. #_DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} --http-proxy=http://username:password@proxy_ip:proxy_port -i apt-fast.list'
  71.  
  72. # axel:
  73. _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' # axel
  74. ++ _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a'
  75.  
  76. # Check for proper priveliges
  77. [ "`whoami`" = root ] || exec sudo "$0" "$@"
  78. whoami
  79. ++ whoami
  80. + '[' root = root ']'
  81.  
  82. # Check if a lockfile exists
  83. LCK_FILE=/var/run/$(basename $0).lock
  84. basename $0).lock
  85. basename $0
  86. ++ basename /usr/sbin/apt-fast
  87. + LCK_FILE=/var/run/apt-fast.lock
  88. [ -f $LCK_FILE ] && { echo "$(basename $0) already running"; exit 1; }
  89. + '[' -f /var/run/apt-fast.lock ']'
  90.  
  91. # Remove lockfile
  92. LCK_RM() {
  93. rm -f $LCK_FILE
  94. #echo lock-File $LCK_FILE deleted
  95. }
  96.  
  97. trap "LCK_RM ; exit 1" 2 9 15
  98. + trap 'LCK_RM ; exit 1' 2 9 15
  99.  
  100. # Create and insert a PID number to lockfile
  101. echo $$ > $LCK_FILE
  102. + echo 2605
  103. NUM=1
  104. + NUM=1
  105.  
  106. # Make sure one of the download managers is enabled
  107. [ -z "$_DOWNLOADER" ] && echo "You must configure /etc/apt-fast.conf to use axel or aria2c" && LCK_RM && exit 1
  108. + '[' -z 'cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' ']'
  109.  
  110. # If the user entered arguments contain upgrade, install, or dist-upgrade
  111. if echo "$@" | grep -q "upgrade\|install\|dist-upgrade|full-upgrade"; then
  112. echo "Working...";
  113.  
  114. # Test if apt-fast directory is present where we put packages
  115. if [ ! -d /var/cache/apt/archives/apt-fast ] ; then
  116. mkdir /var/cache/apt/archives/apt-fast;
  117. fi
  118. cd /var/cache/apt/archives/apt-fast;
  119.  
  120. # Get the package URL's
  121. # note aptitude doesn't have this functionality
  122. # so we use apt-get only
  123. apt-get -y --print-uris $@ | egrep -o -e "(ht|f)tp://[^\']+" > /tmp/apt-fast.list
  124.  
  125. # Download the packages
  126. eval ${_DOWNLOADER}
  127.  
  128. # Move all packages to the apt install directory by force to ensure
  129. # already existing debs which may be incomplete are replaced
  130. mv -f *.deb /var/cache/apt/archives/
  131.  
  132. # Install our downloaded packages
  133. ${_APTMGR} $@;
  134.  
  135. echo -e "\nDone! Verify that all packages were installed successfully. If errors are found, run apt-get clean as root and try again using apt-get directly.\n";
  136.  
  137. else
  138. ${_APTMGR} $@;
  139. fi
  140. + echo install blender
  141. + grep -q 'upgrade\|install\|dist-upgrade|full-upgrade'
  142. + echo Working...
  143. Working...
  144. + '[' '!' -d /var/cache/apt/archives/apt-fast ']'
  145. + cd /var/cache/apt/archives/apt-fast
  146. + apt-get -y --print-uris install blender
  147. + egrep -o -e '(ht|f)tp://[^\'\'']+'
  148. + eval cat /tmp/apt-fast.list '|' xargs -l1 axel -n '${_MAXNUM}' -a
  149. cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a
  150. ++ cat /tmp/apt-fast.list
  151. ++ xargs -l1 axel -n 5 -a
  152. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/liba/libav/libavdevice53_0.8.1-0ubuntu1_amd64.deb
  153. Opening output file libavdevice53_0.8.1-0ubuntu1_amd64.deb
  154. Server unsupported, starting from scratch with one connection.
  155. Starting download
  156.  
  157. Connection 0 finished ]
  158.  
  159. Downloaded 28,5 kilobytes in 0 seconds. (123,86 KB/s)
  160. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/g/glew/libglew1.6_1.6.0-4_amd64.deb
  161. Opening output file libglew1.6_1.6.0-4_amd64.deb
  162. Server unsupported, starting from scratch with one connection.
  163. Starting download
  164.  
  165. Connection 0 finished ]
  166.  
  167. Downloaded 111,2 kilobytes in 0 seconds. (335,42 KB/s)
  168. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/python3.2-minimal_3.2.3-0ubuntu3_amd64.deb
  169. Opening output file python3.2-minimal_3.2.3-0ubuntu3_amd64.deb
  170. Server unsupported, starting from scratch with one connection.
  171. Starting download
  172.  
  173. Connection 0 finished ]
  174.  
  175. Downloaded 1736,2 kilobytes in 2 seconds. (836,72 KB/s)
  176. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/python3.2_3.2.3-0ubuntu3_amd64.deb
  177. Opening output file python3.2_3.2.3-0ubuntu3_amd64.deb
  178. Server unsupported, starting from scratch with one connection.
  179. Starting download
  180.  
  181. Connection 0 finished ]
  182.  
  183. Downloaded 2469,1 kilobytes in 2 seconds. (895,96 KB/s)
  184. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/libpython3.2_3.2.3-0ubuntu3_amd64.deb
  185. Opening output file libpython3.2_3.2.3-0ubuntu3_amd64.deb
  186. Server unsupported, starting from scratch with one connection.
  187. Starting download
  188.  
  189. Connection 0 finished ]
  190.  
  191. Downloaded 1282,6 kilobytes in 1 second. (813,98 KB/s)
  192. Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/universe/b/blender/blender_2.62-1_amd64.deb
  193. Opening output file blender_2.62-1_amd64.deb
  194. Server unsupported, starting from scratch with one connection.
  195. Starting download
  196.  
  197. Connection 0 finished ]
  198.  
  199. Downloaded 20,1 megabytes in 13 seconds. (1503,54 KB/s)
  200. + mv -f blender_2.62-1_amd64.deb libavdevice53_0.8.1-0ubuntu1_amd64.deb libglew1.6_1.6.0-4_amd64.deb libpython3.2_3.2.3-0ubuntu3_amd64.deb python3.2_3.2.3-0ubuntu3_amd64.deb python3.2-minimal_3.2.3-0ubuntu3_amd64.deb /var/cache/apt/archives/
  201. + apt-get install blender
  202. Paketlisten werden gelesen... Fertig
  203. Abhängigkeitsbaum wird aufgebaut
  204. Statusinformationen werden eingelesen... Fertig
  205. Die folgenden zusätzlichen Pakete werden installiert:
  206. libavdevice53 libglew1.6 libpython3.2 python3.2 python3.2-minimal
  207. Vorgeschlagene Pakete:
  208. yafaray glew-utils python3.2-doc
  209. Die folgenden NEUEN Pakete werden installiert:
  210. blender libavdevice53 libglew1.6 libpython3.2 python3.2 python3.2-minimal
  211. 0 aktualisiert, 6 neu installiert, 0 zu entfernen und 6 nicht aktualisiert.
  212. Es müssen noch 0 B von 26,8 MB an Archiven heruntergeladen werden.
  213. Nach dieser Operation werden 73,8 MB Plattenplatz zusätzlich benutzt.
  214. Möchten Sie fortfahren [J/n]?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement