#!/usr/bin/bash
# https://askubuntu.com/questions/35223/syntax-for-socks-proxy-in-apt-conf

apt install tsocks

nano /etc/tsocks.conf

# tsocks apt-get update
# tsocks apt-get dist-upgrade

# . tsocks -on
# apt-get update
# apt-get dist-upgrade
# . tsocks -off # not really necessary, given the exit

