Linux Distributions and Repositories over Tor
When you run apt update, your network operator can see which mirror you're talking to and, from the size and timing of the downloads, often guess which packages you're installing. Debian's onion mirrors close that gap. Debian runs onion services for its website and its package archive, and with the apt-transport-tor package installed you can point your sources at tor+http:// addresses so every update goes over Tor.
Why bother? For most people it's a nice-to-have. For someone in a country that monitors what software people install, or a sysadmin who doesn't want to reveal what's running on a server, it's more than that. Installing something like Tor itself, a VPN client or encryption tools can draw attention in some places.
Package security doesn't depend on the transport. Debian packages are signed, and apt verifies those signatures whether you download over HTTP, HTTPS or Tor. The onion address adds privacy and makes it harder for anyone to block your updates, not extra integrity.
Whonix and Tails, both Debian-based, already fetch updates over Tor by default. If you're interested in a system built around Tor from the ground up, start with Whonix or Tails. For routing other command-line tools through Tor, torsocks and proxychains is the article you want.