{"id":1326,"date":"2009-11-25T22:24:58","date_gmt":"2009-11-25T21:24:58","guid":{"rendered":"https:\/\/nodch.de\/?p=1326"},"modified":"2009-11-25T22:24:58","modified_gmt":"2009-11-25T21:24:58","slug":"apt-fast-und-axel-beschleunigen-apt-get","status":"publish","type":"post","link":"https:\/\/nodch.de\/?p=1326","title":{"rendered":"apt-fast und Axel beschleunigen apt-get"},"content":{"rendered":"<p>apt-fast ist ein kleine Shellskript welches die Funktionen des Axel Download Beschleunigers zu nutze macht. Axel ist ein kleines Kommandozeilen Programm zur Beschleunigung von HTTP und FTP Downloads. In Verbindung mit dem apt-fast Shellskript beschleunigt es die durch apt-get Operationen ausgef\u00fchrten Downloads sp\u00fcrbar.<\/p>\n<p>Axel nutzt ein einfaches Prinzip und l\u00e4dt Dateien nicht nur \u00fcber eine Quellen, sondern \u00fcber mehrere parallel. H\u00e4ufig bieten Downloadserver nur eine gewisse maximale Bandbreite pro Verbindung, Axel b\u00fcndelt mehrere Verbindungen und erreicht somit h\u00f6here Geschwindigkeiten.<\/p>\n<p>Das <a title=\"apt-fast shell script by Matt Parnell\" href=\"https:\/\/nodch.de\/aptfast\" target=\"_blank\"><strong>apt-fast Shellskript von Matt Parnell<\/strong><\/a> bedient sich dieser Funktionen von Axel und wendet sie auf apt-get Befehle aus. Somit k\u00f6nnen alle apt-get install, apt-get update und apt-get upgrade von der erh\u00f6hten Geschwindigkeit profitieren.<\/p>\n<p>Um in den Genuss der Geschwindigkeitsvorteile zu kommen ben\u00f6tigt man zuerst Axel:<\/p>\n<div style=\"margin: 10px; padding: 10px; background: lightgrey none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;\"><span style=\"font-weight: bold; font-size: 130%;\"> <\/span><\/p>\n<pre id=\"sources-list-entries\" style=\"overflow: auto;\"><span id=\"series-deb-src\">\u00a0<\/span><code>sudo apt-get install axel<\/code><span style=\"font-family: monospace;\">\u00a0<\/span><\/pre>\n<\/div>\n<p>Anschliessend erstellt man eine leere Datei mit dem Namen apt-fast und f\u00fcllt sie mit folgendem Inhalt:<\/p>\n<p>Den entsprechenden Key f\u00fcr Apt gibt es nach Eingabe von:<\/p>\n<div style=\"margin: 10px; padding: 10px; background: lightgrey none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;\"><span style=\"font-weight: bold; font-size: 130%;\"> <\/span><\/p>\n<pre id=\"sources-list-entries\" style=\"overflow: auto;\"><span id=\"series-deb-src\">\u00a0<\/span><span style=\"font-style: italic;\">#!\/bin\/sh\r\n#apt-fast by Matt Parnell http:\/\/www.mattparnell.com , this thing is FOSS\r\n#please feel free to suggest improvments to admin@mattparnell.com\r\n# Use this just like apt-get for faster package downloading. Make sure to have axel installed\r\n\r\n#If the first user entered variable string contains apt-get, and the second string entered is either install or dist-upgrade\r\nif echo \"$1\" | grep -q \"[upgrade]\" || echo \"$2\" | grep -q \"[install]\" || echo \"$2\" | grep -q \"[dist-upgrade]\"; then\r\n echo \"Working...\";\r\n\r\n #Go into the directory apt-get normally puts downloaded packages\r\n cd \/var\/cache\/apt\/archives\/;\r\n\r\n #Have apt-get print the information, including the URI's to the packages\r\n apt-get -y --print-uris $1 $2 $3 $4 &gt; debs.list;\r\n\r\n #Strip out the URI's, and download the packages with Axel for speediness\r\n egrep -o -e \"(ht|f)tp:\/\/[^\\']+\" debs.list | xargs -l1 axel -a;\r\n\r\n #Perform the user's reqested action via apt-get\r\n apt-get -y $1 $2 $3 $4;\r\n\r\n echo \"Done! Make sure and check to see that the packages all were installed properly. If a package is erred, run sudo apt-get autoclean and try installing it again without the use of this script.\";\r\n\r\nelif echo \"$1\" | grep -q \"[*]\"; then\r\n apt-get $1;\r\nelse\r\n echo \"Sorry, but you appear to be entering invalid options. You must use apt-get and one of apt-get's options in order to use this script.\";\r\nfi<\/span><span style=\"font-family: monospace;\">\u00a0<\/span><\/pre>\n<\/div>\n<p>Mit &#8222;chmod +x apt-fast&#8220; wird das Skript ausf\u00fchrbar geschaltet, idealerweise sollte man es nun noch nach \/usr\/bin verschieben, damit ist es von \u00fcberall aus aufrufbar. Nun kann man alle Download-Operationen, die man zuvor mit apt-get ausgef\u00fchrt hat, durch apt-fast ersetzen. Das betrifft &#8222;install&#8220;, &#8222;update&#8220; und &#8222;upgrade&#8220;.<\/p>\n<p>Das apt-fast Shellskript funktioniert auf allen Linuxdistributionen die apt zur Paketverwaltung nutzen, also Debian, Ubunut und Derivaten.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>apt-fast ist ein kleine Shellskript welches die Funktionen des Axel Download Beschleunigers zu nutze macht. Axel ist ein kleines Kommandozeilen Programm zur Beschleunigung von HTTP und FTP Downloads.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4,142],"tags":[701,771,772,2481],"class_list":["post-1326","post","type-post","status-publish","format-standard","hentry","category-fundstucke","category-netzwelt","category-ubuntu","tag-apt","tag-apt-fast","tag-beschleunigung","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/nodch.de\/index.php?rest_route=\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nodch.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nodch.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nodch.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nodch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1326"}],"version-history":[{"count":0,"href":"https:\/\/nodch.de\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions"}],"wp:attachment":[{"href":"https:\/\/nodch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nodch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nodch.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}