r/AlpineLinux • • Jan 03 '20

What are mirrors?

I am trying to install Alpine, but I'm running into issues with the mirrors section (that or it's the hard drive?). I'm confused, what exactly are mirrors? How do they work?

0 Upvotes

3 comments sorted by

2

u/shyouko Jan 03 '20

In general, mirrors are copies of a certain web site that's made available, usually in a geographically distributed way, such that you can have faster access to what's on the main web site.

2

u/sarkyscouser Jan 03 '20

Mirrors are online repositories of packages (think of them as the linux equivalent of the app store if you're just starting out - although they are way more powerful)

But rather than everyone using the same mirror, anyone can set up and host a mirror and advertise this to users. The mirrors sync with main repo on a set frequency so it's safe to use the fastest/closest mirror to your location.

apk update updates your list of packages locally from your chosen mirror and apk upgrade upgrades all your installed packages by downloading the latest versions from your chosen mirror.

Wiki

2

u/sarkyscouser Jan 03 '20

or more succinctly, mirrors are links to online repositories of packages for your chosen Linux distribution.

Choose the closest/fastest mirror to your location (and read the wiki)