Apt-fast melhorado
Publicado por Jakson de Oliveira Lima (última atualização em 23/04/2010)
[ Hits: 8.310 ]
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
Screensaver Johnny Castaway - XFCE + Wine
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Como colorir os logs do terminal com ccze
Instalação Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
Máquinas Virtuais com IP estático acessando Internet no Virtualbox
Criar entrada no GRUB para uma ISO Linux (5)
Ruído no Microfone (ALC287 - AMD Ryzen 5 7535HS) no Debian 12.9 (15)