How large is the aur?
Like could I feasibly keep a local copy since I rarely have internet and I'm always messing with different packages
About this post
- Posted
- Archived
- Score
- 31 · 100% up
- Kind
- Text
- ID
- ceknpy
Like could I feasibly keep a local copy since I rarely have internet and I'm always messing with different packages
20 comments
You could probably keep a local copy of all PKGBUILDs quite easily but most of them fetch stuff from github or other places on the internet. For that same reason estimating the full size of the entire AUR is pretty much impossible and locally hosting all those resources is also not feasible without modifications to individual PKGBUILDs. There are/used to be unofficial repositories that contain binary versions of AUR packages which you could get a local copy of, but if your goal is to "mess with them" then I assume compiling them is part of the charm.
On a side note, if you rarely have access to the internet perhaps a rolling release distribution is not the best choice for you. Don't get me wrong, I encourage you to use Arch if you can but sporadic updates often cause problems and many of the specific strengths of the distribution depend on your access to the internet.
Yep thanks for the advice.
It's just limited when I have internet, but it's stable when I do. It's often enough to do weekly upgrades.
Not really, as long as you know roughly when the last update was, and what manual steps you need to do to catch up.
…unless we're talking like "less than once a year" sporadic.
Still, if every other update requires manual intervention because you only get to update every 3 months or so it gets annoying. Either way OP clarified it's not that rare.
you're going to need an internet connection anyway to build anything from it.
The list of packages at https://aur.archlinux.org/packages.gz gives 57848 packages. Since all they consist of is metadata(name, description, conflicts etc) and the PKGBUILD, they are extremely small - wineasio.tar.gz, as a random example, is 1.3KB, and unpacked wineasio.tar is 10KB.
If we consider that you want to store each package in its snapshot format, .tar.gz, and estimate that a single package would weigh 5KB, then such a database would weigh 289240KB, or about 300MB.
Unpacked versions of packages can be cardinally bigger or cardinally smaller, but I think it's reasonable to say that, if you unpack them, whole AUR database would weigh less than a couple of GBs.
However if you want to just have a listing, that link above is enough, and when you save all of its containments into a file, it ends up at 880KB.
But yeah, I'm sure there are packages that point to GitHub repos that themselves weigh a couple dozen of GBs. lol
If we throw a wild estimate that a single package would be 200MB total when you download all requirements and prerequisites listed in the PKGBUILD, then that would be 11 569 600 MB, or 11.5 terabytes. For that case, yeah, you'd need a fancy data server. And keep in mind that they often need all kinds of dependencies from main Arch Linux repos which you'd also need to download and install to be able to compile/use those packages, which can end up at equally huge numbers.
The AUR database size is 300 MB, the whole Git repo is 1.7G. So it's not really that big in general, but we don't want everyone to hammer our servers to mirror it ;-)
Oh sorry, of course not. Thanks!
Do you mean how big the AUR servers are, or how much space the AUR packets occupy in your system?
All the aur packages
Ok, but in your system or in the AUR servers?
A local copy of all the PKGBUILDS? probably. At the bottom of this page there are two links to obtain a list of all packages. You could probably loop through them and grab/clone them all but there might be a better way
https://wiki.archlinux.org/index.php/Arch_User_Repository
If you're looking to build everything good luck 😆
Oh wow I just wanted to have a local copy if needed.
When cloning it shows the size right? Is there any way to simulate a clone, as I'm on data and can't afford to waste any.
Deleted before we saved it.
Repos can be anything from 900b to 10s of kb. Including things like the actual program files would increase that size massively.
This is actually what freebsd does, called the ports tree.
Interesting question. I never wondered about the logistics of archlinux/aur.
Thanks for the job people