Debian – Full local copy of an entire distro

debianscientific-linux

Any distro really, but I am first and foremost interested in Debianoids and Rheloids.

Once in a while I hear of someone who insists on keeping a full local copy of an entire distro. According to wikipedia, Debian Jessie has more than 43000 packages. Suppose I want a local copy of all of them, on a system with limited access to the internet and the Debian repositories. This cannot occupy more than a 100 GB (which is reasonably cheap by today's standards). How would I even proceed getting them, for a given stable release? I mean the entire dependency graph of all the packages a distro has been working on for a given release…Scientific Linux/CentOS/RHEL have a dual layer "everything" DVD, but it's less than 7 GB, so I doubt it's really "everything".

Best Answer

You could mail-order a set of Debian DVDs, copy them to your hard disk and keep them up-to-date with debmirror.

Another variation on the same idea is to use a USB drive with enough space and debmirror at a location with good, fast, cheap internet access to do the initial mirror and then keep it updated with debmirror at your slow internet. Or, get someone to do the initial mirror for you and mail it to you.

You can probably do similar things with rpm/yum repos, but I'm not as familiar with the tools.

Note that with limited internet access, you're probably better off using apt-cacher-ng than mirroring Debian. Comment out the deb-src lines in your sources.list file(s) unless you actually need to download source packages.

Related Question