Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> apt-fast install blender
- # Config File
- source /etc/apt-fast.conf
- + source /etc/apt-fast.conf
- ###################################################################
- # CONFIGURATION OPTIONS
- ###################################################################
- # Maximum number of connections
- _MAXNUM=5
- ++ _MAXNUM=5
- # Use aptitude or apt-fast?
- # Note that for outputting the package URI list, we always use apt-get
- # ...since aptitude can't do this
- _APTMGR=apt-get
- ++ _APTMGR=apt-get
- # Note that the manager you choose has other options - feel free
- # to setup your own _DOWNLOADER or customize one of the ones below
- # they're simply here as examples, and to provide sane defaults
- # Download manager selection
- # (choose one by uncommenting one #_DOWNLOADER line)
- # aria2c:
- #_DOWNLOADER='aria2c -c -j ${_MAXNUM} --input-file=/tmp/apt-fast.list --connect-timeout=600 --timeout=600 -m0'
- # aria2c with a proxy (set username, proxy, ip and password!)
- #_DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} --http-proxy=http://username:password@proxy_ip:proxy_port -i apt-fast.list'
- # axel:
- _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' # axel
- ++ _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a'
- # Check for proper priveliges
- [ "`whoami`" = root ] || exec sudo "$0" "$@"
- whoami
- ++ whoami
- + '[' burnfaker = root ']'
- + exec sudo /usr/sbin/apt-fast install blender
- # Config File
- source /etc/apt-fast.conf
- + source /etc/apt-fast.conf
- ###################################################################
- # CONFIGURATION OPTIONS
- ###################################################################
- # Maximum number of connections
- _MAXNUM=5
- ++ _MAXNUM=5
- # Use aptitude or apt-fast?
- # Note that for outputting the package URI list, we always use apt-get
- # ...since aptitude can't do this
- _APTMGR=apt-get
- ++ _APTMGR=apt-get
- # Note that the manager you choose has other options - feel free
- # to setup your own _DOWNLOADER or customize one of the ones below
- # they're simply here as examples, and to provide sane defaults
- # Download manager selection
- # (choose one by uncommenting one #_DOWNLOADER line)
- # aria2c:
- #_DOWNLOADER='aria2c -c -j ${_MAXNUM} --input-file=/tmp/apt-fast.list --connect-timeout=600 --timeout=600 -m0'
- # aria2c with a proxy (set username, proxy, ip and password!)
- #_DOWNLOADER='aria2c -c 20 -j ${_MAXNUM} --http-proxy=http://username:password@proxy_ip:proxy_port -i apt-fast.list'
- # axel:
- _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' # axel
- ++ _DOWNLOADER='cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a'
- # Check for proper priveliges
- [ "`whoami`" = root ] || exec sudo "$0" "$@"
- whoami
- ++ whoami
- + '[' root = root ']'
- # Check if a lockfile exists
- LCK_FILE=/var/run/$(basename $0).lock
- basename $0).lock
- basename $0
- ++ basename /usr/sbin/apt-fast
- + LCK_FILE=/var/run/apt-fast.lock
- [ -f $LCK_FILE ] && { echo "$(basename $0) already running"; exit 1; }
- + '[' -f /var/run/apt-fast.lock ']'
- # Remove lockfile
- LCK_RM() {
- rm -f $LCK_FILE
- #echo lock-File $LCK_FILE deleted
- }
- trap "LCK_RM ; exit 1" 2 9 15
- + trap 'LCK_RM ; exit 1' 2 9 15
- # Create and insert a PID number to lockfile
- echo $$ > $LCK_FILE
- + echo 2605
- NUM=1
- + NUM=1
- # Make sure one of the download managers is enabled
- [ -z "$_DOWNLOADER" ] && echo "You must configure /etc/apt-fast.conf to use axel or aria2c" && LCK_RM && exit 1
- + '[' -z 'cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a' ']'
- # If the user entered arguments contain upgrade, install, or dist-upgrade
- if echo "$@" | grep -q "upgrade\|install\|dist-upgrade|full-upgrade"; then
- echo "Working...";
- # Test if apt-fast directory is present where we put packages
- if [ ! -d /var/cache/apt/archives/apt-fast ] ; then
- mkdir /var/cache/apt/archives/apt-fast;
- fi
- cd /var/cache/apt/archives/apt-fast;
- # Get the package URL's
- # note aptitude doesn't have this functionality
- # so we use apt-get only
- apt-get -y --print-uris $@ | egrep -o -e "(ht|f)tp://[^\']+" > /tmp/apt-fast.list
- # Download the packages
- eval ${_DOWNLOADER}
- # Move all packages to the apt install directory by force to ensure
- # already existing debs which may be incomplete are replaced
- mv -f *.deb /var/cache/apt/archives/
- # Install our downloaded packages
- ${_APTMGR} $@;
- 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";
- else
- ${_APTMGR} $@;
- fi
- + echo install blender
- + grep -q 'upgrade\|install\|dist-upgrade|full-upgrade'
- + echo Working...
- Working...
- + '[' '!' -d /var/cache/apt/archives/apt-fast ']'
- + cd /var/cache/apt/archives/apt-fast
- + apt-get -y --print-uris install blender
- + egrep -o -e '(ht|f)tp://[^\'\'']+'
- + eval cat /tmp/apt-fast.list '|' xargs -l1 axel -n '${_MAXNUM}' -a
- cat /tmp/apt-fast.list | xargs -l1 axel -n ${_MAXNUM} -a
- ++ cat /tmp/apt-fast.list
- ++ xargs -l1 axel -n 5 -a
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/liba/libav/libavdevice53_0.8.1-0ubuntu1_amd64.deb
- Opening output file libavdevice53_0.8.1-0ubuntu1_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 28,5 kilobytes in 0 seconds. (123,86 KB/s)
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/g/glew/libglew1.6_1.6.0-4_amd64.deb
- Opening output file libglew1.6_1.6.0-4_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 111,2 kilobytes in 0 seconds. (335,42 KB/s)
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/python3.2-minimal_3.2.3-0ubuntu3_amd64.deb
- Opening output file python3.2-minimal_3.2.3-0ubuntu3_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 1736,2 kilobytes in 2 seconds. (836,72 KB/s)
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/python3.2_3.2.3-0ubuntu3_amd64.deb
- Opening output file python3.2_3.2.3-0ubuntu3_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 2469,1 kilobytes in 2 seconds. (895,96 KB/s)
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/main/p/python3.2/libpython3.2_3.2.3-0ubuntu3_amd64.deb
- Opening output file libpython3.2_3.2.3-0ubuntu3_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 1282,6 kilobytes in 1 second. (813,98 KB/s)
- Initializing download: http://de.archive.ubuntu.com/ubuntu/pool/universe/b/blender/blender_2.62-1_amd64.deb
- Opening output file blender_2.62-1_amd64.deb
- Server unsupported, starting from scratch with one connection.
- Starting download
- Connection 0 finished ]
- Downloaded 20,1 megabytes in 13 seconds. (1503,54 KB/s)
- + 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/
- + apt-get install blender
- Paketlisten werden gelesen... Fertig
- Abhängigkeitsbaum wird aufgebaut
- Statusinformationen werden eingelesen... Fertig
- Die folgenden zusätzlichen Pakete werden installiert:
- libavdevice53 libglew1.6 libpython3.2 python3.2 python3.2-minimal
- Vorgeschlagene Pakete:
- yafaray glew-utils python3.2-doc
- Die folgenden NEUEN Pakete werden installiert:
- blender libavdevice53 libglew1.6 libpython3.2 python3.2 python3.2-minimal
- 0 aktualisiert, 6 neu installiert, 0 zu entfernen und 6 nicht aktualisiert.
- Es müssen noch 0 B von 26,8 MB an Archiven heruntergeladen werden.
- Nach dieser Operation werden 73,8 MB Plattenplatz zusätzlich benutzt.
- Möchten Sie fortfahren [J/n]?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement