Github messages for voidlinux
 help / color / mirror / Atom feed
From: Duncaen <Duncaen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [Question] Hosting my own private mirror with only the packages I need
Date: Tue, 23 Nov 2021 00:11:52 +0100	[thread overview]
Message-ID: <20211122231152.Ln0MzOUV0jeCOtpreONdLtcrWFKq6B0PW9Q5V57MdvQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34205@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/34205#issuecomment-975990476

Comment:
TLDR: Just host a caching http proxy, here is an nginx example: https://gist.github.com/Duncaen/645f119544a65ad0fd32e0e0400e22a3.

>  So if I have my own custom repo hosted on my network and still be able to install packages from the main void repo. Another thing that isn't really documented if multiple repos is a thing is if each mirror has to host ALL of the packages in the main void repo or even if they just require the dependancies of the custom packages(like if I have a custom version of glew do I need to host my own version of glu or can glu be pulled from the main mirror to compile glew). I was hoping to be able to remove all the packages I'm not using to reduce the storage requirement of the mirror basically.

There is no such thing as a mirror in xbps, there are repositories and you can as many as you want.
But the first repository containing a package name is choosen to provide that package.
So adding your own repository prior to the official repo will choose the packages you have in your repo from your repo and the other packages from the official repo.

A mirror is a mirror, not half or incomplete, if the repository index advertises a package name then the package will be downloaded from that mirror.

Using a caching http proxy will cache packages you request so subsequent downloads of the package will come from the cache, by configuring that cache you can limit the cache size and how long a package will be retained, no additional administration or anything required, you don't have to maintain a list of packages to mirror or cleanup old packages.
It just like a normal repository mirror, things that are not in the cache will be downloaded and passed through to the client and then retained in the cache for subsequent requests.

  parent reply	other threads:[~2021-11-22 23:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22 19:02 [ISSUE] " WilliamBehrens
2021-11-22 20:53 ` HadetTheUndying
2021-11-22 21:19 ` WilliamBehrens
2021-11-22 21:23 ` HadetTheUndying
2021-11-22 21:29 ` WilliamBehrens
2021-11-22 23:01 ` Duncaen
2021-11-22 23:09 ` Duncaen
2021-11-22 23:11 ` Duncaen [this message]
2021-11-23 11:17 ` Duncaen
2021-11-26 15:40 ` [ISSUE] [CLOSED] " WilliamBehrens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211122231152.Ln0MzOUV0jeCOtpreONdLtcrWFKq6B0PW9Q5V57MdvQ@z \
    --to=duncaen@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).