You are not logged in.

#1 2014-09-07 17:29:10

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

[SOLVED] Mirror of Custom Repository

Unfortunately I've noticed the Cinnamon repository has gone down again, and while I'm willing to wait until it comes back up again I'd rather try to take steps to avoid this situation.

Is it possible and useful to create a mirror of a custom repository? While I know how to create a custom repository - per the wiki page - I'm not sure if that's useful at all, since there aren't any mirrors listed in the custom repository list which seems to indicate that mirroring of custom repositories isn't really a thing.

To add on to the "is it useful" part, can you add mirrors to your pacman.conf - or some other config file - for custom repositories?

Last edited by DaimyoKirby (2014-09-13 02:28:47)

Offline

#2 2014-09-07 18:51:55

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,175
Website

Re: [SOLVED] Mirror of Custom Repository

As long as you set it up to be identical to the original, you can have multiple mirrors listed in /etc/pacman.conf. The AMD Catalyst repository has several different mirrors, so you can study those.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-09-07 19:04:44

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED] Mirror of Custom Repository

Ah, I hadn't noticed that! Thank you!

Offline

#4 2014-09-07 21:37:11

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Mirror of Custom Repository

You can create your own mirror list for a custom repository and then add an Include = /path/to/list in the custom repository's entry in pacman.conf. There is no real point to it, however;  they will only apply to a single repo so you may as well add the Server =... lines directly to pacman.conf. The utility of the official mirrorlist is due to its use across multiple repos.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2014-09-07 21:41:15

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED] Mirror of Custom Repository

Would it ever be an issue to have multiple servers listed? For example, if one goes out-of-sync - would that cause issues with pacman, or would it be able to tell which one to use by reading package versions and whatnot? I know there are multiple servers listed in /etc/pacman.d/mirrorlist, so I suppose that question applies to it as well. (Pardon my ignorance)

Offline

#6 2014-09-07 22:19:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [SOLVED] Mirror of Custom Repository

Pacman uses the first server in the list it can connect to.  So while one might have several servers listed, pacman will generally only use the first one and never even check the second unless the first can't be reached (and/or the needed file can't be found on the first).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-09-07 22:55:52

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED] Mirror of Custom Repository

Oh, ok, that's good to know.
My last question, which will determine if I can do this or not - If I were to host a mirror, would it be an issue hosting it from on my school's (university) network? That would cause issues with the firewall and whatnot, wouldn't it?

Last edited by DaimyoKirby (2014-09-07 23:01:09)

Offline

#8 2014-09-08 06:55:51

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] Mirror of Custom Repository

Wouldn't that depend on the policies of the university? That being said, as long as the file can be read and downloaded globally, there should be no problem.

EDIT: Globally as from any computer connected to the internet.

Last edited by runical (2014-09-08 06:56:31)

Offline

#9 2014-09-13 02:28:35

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED] Mirror of Custom Repository

I talked to my university's IT department and they said that all registered devices are automatically given forward-facing IPs, so there's no need to worry about anything - it'll all work without any special configuration. So once I get this desktop setup (which I have a bit of an issue with, but that's for another thread) I'm going to work on setting up a Cinnamon mirror repo.

Thanks for the help and info, everyone!

Offline

Board footer

Powered by FluxBB