De acordo com as Leis 12.965/2014 e 13.709/2018, que regulam o uso da Internet e o tratamento de dados pessoais no Brasil, ao me inscrever na newsletter do portal DICAS-L, autorizo o envio de notificações por e-mail ou outros meios e declaro estar ciente e concordar com seus Termos de Uso e Política de Privacidade.
Colaboração: Noilson Caio Teixeira de Araújo
Data de Publicação: 15 de agosto de 2011
Este é um simples script que automatiza a instalação do Multilib Slackware para X86_64.
#!/bin/bash # Noilson Caio Teixeira de Araújo - caiogore[at]gmail[dot]com # Script de instalação do multilib no slackware 13.37.0 # # binwget=$(which wget) binlftp=$(which lftp) binawk=$(which awk) binupgradepkg=$(which upgradepkg) version=/etc/slackware-version wgetopt="-q --delete-after -T 5 -t 1" url="http://connie.slackware.com/~alien/multilib/" # # Test access to $url # $binwget $wgetopt $url retorno="$?" if [ "$retorno" != 0 ] then echo "$url - [not found]" exit 1 fi # # test distribution # if [ -z "$version" ] then echo "No Slackware" fi # # teste slackware version # slackwareversion=$($binawk '{print $2}' "$version") if [ "$slackwareversion" != "13.37.0" ] then echo "Only for Slackware 13.37.0 version" exit 1 fi # # test ftp connection # clear $binlftp -c "open $url ; mirror 13.37" retornolftp="$?" if [ "$retornolftp" != 0 ] then echo "[ Download failed ]" exit 1 fi # # yes to unpack files # echo "install packages? (y / n)" read retornoinst if [ "$retornoinst" = "y" ] then $binupgradepkg --reinstall --install-new 13.37/*.t?z $binupgradepkg --install-new 13.37/slackware64-compat32/*-compat32/*.t?z fi
Referências: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib#slackware64_13.37
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comentários