Bug#881810: apt-transport-tor: Provide script to rewrite apt sources.list to use tor?
Package: apt-transport-tor
Version: 0.3
It would be convenient if it was easier to switch APT to use package
sources via Tor. What about providing a script in the apt-transport-tor
package, rewriting all the current APT sources in /etc/apt/ to use the
.onion addresses listed on <URL: https://onion.debian.org/ >? This
would make the process into a simple three step solution:
apt install apt-transport-tor
/usr/share/apt-transport-tor/convert-apt-sources
apt update
The script could do simple sed tranformations, something like this to
every sources.list file for each hostname:
sed -i 's%http://ftp.debian.org%tor+http://vwakviie2ienjx6t.onion%' \
/etc/apt/sources.list
What do you think of the idea? Would you like to maintain such script
as part of the apt-transport-tor package?
--
Happy hacking
Petter Reinholdtsen
Reply to: