Skip to content

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.

43 points

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.

8 points

but sporadic updates often cause problems

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.

3 points

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.

1 points

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.

8 points

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 ;-)

4 points

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 😆

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points

Statistics
Packages 54213

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.

1 points

Interesting question. I never wondered about the logistics of archlinux/aur.

Thanks for the job people

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.