Apt-fast melhorado
Publicado por Jakson de Oliveira Lima (última atualização em 23/04/2010)
[ Hits: 8.352 ]
Homepage: não tenho
Há algum tempo vi aqui no VOL o script apt-get, que usa o gerenciador de downloads Axel para baixar os arquivos e com isso obtém ganhos superiores a 10x na velocidade o apt-get convencional.
De fato ele acelera muito, mas era muito imperfeito, não dava para ver as alterações do sistema e baixava os pacotes antes mesmo do usuário confirmar a ação, então resolvi melhorá-lo, dando a ele uma pré-visualização dos pacotes que serão instalados/removidos, bem como a opção de cancelar antes de baixar qualquer coisa.
Agora ele está mais aportuguesado e pronto para ser usado.
Veja o artigo original o apt-fast em:
http://www.vivaolinux.com.br/artigo/Aptfast-turbinando-o-aptget-em-distros-Debianlike
# !/bin/sh # apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source # if you do anything cool with it, let me know so I can publish or host it for you # contact me at admin@mattparnell.com # Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow # for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html # Use this just like apt-get for faster package downloading. Make sure to have axel installed. # If the user entered arguments contain upgrade, install, or dist-upgrade if echo "$@" | grep -q "upgrade\|install\|dist-upgrade"; then echo "Trabalhando..."; # Go into the directory apt-get normally puts downloaded packages cd /var/cache/apt/archives/; # Have apt-get print the information, including the URI's to the packages # Strip out the URI's, and download the packages with Axel for speediness # I found this regex elsewhere, showing how to manually strip package URI's you may need...thanks to whoever wrote it apt-get -s $@ > modifica.list grep -v Inst modifica.list | grep -v Conf | grep -v Remv echo "Deseja Continuar? (s/n)" ; read confirma if [ "$confirma" = "s" ] then apt-get -y --print-uris $@ | egrep -o -e "(ht|f)tp://[^\']+" > apt-fast.list && cat apt-fast.list | xargs -l1 axel -a apt-get -y $@; else exit fi # Perform the user's requested action via apt-get else apt-get $@; fi
Inclusão/Exclusão de usuários no CVS.
trocar a senha de um usuario do sistema
pegaMAC - pega o endereço MAC da eth0
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
Como rodo essa suinaria? [RESOLVIDO] (9)
Redes Wifi não aparecem no Linux Mint cinnamon [RESOLVIDO] (5)
Criar atalho para uma pasta na area de trabalho no Linux Mint? (1)