Caching is a very good option, the downside indeed is having to fix the
source (mirrorlist/baseurl). Didn't know the storeid_file_rewrite
option, good to know.
Another option is to use the local plugin to yum/dnf
(
)
The donwside of the local plugin is that it does not group simultaneous
requests (as squid does if configured) and it does not delete old
packages. To be useful in a local network, you must setup the cache dir
to a NFS common repo. And beware of upgrades, since the plugin does not
isolate release versions.
On 10/15/21 16:51, Chris Schanzle wrote:
I am sure mirroring, even if just updates for example x86_64
architecture, would be more bandwidth.
Though when you go to update, having the updates *local* is really nice.
Consider running a squid caching proxy server configured to cache large files
(maximum_object_size).
Since your systems will download from various mirrors at random (squid caches data by the
full URL), you have two options:
1. point your systems to a static regionally-close mirror by commenting mirrorlist= and
pointing baseurl= to your chosen mirror. Downside is when (not "if") your
chosen mirror has an issue, you'll have to wait or reconfigure your systems again.
2. to use a storeid_file_rewrite script or store_id_program (check
serverfault.com for
details).
Configure yum/dnf to use your proxy with "proxy=" in /etc/yum.conf or
/etc/dnf/dnf.conf.
The first system to do updates will obviously be slow, but subsequent ones should be
fast. Consider disabling (deltarpm=0) to reduce local client disk I/O.
Squid and caching proxies are complex. Personally I enjoyed learning the details.
I'm sure google would lead you to more tips (e.g., "squid and caching dnf
downloads").
You may find pointing your browsers at your squid cache speeds some things up too.
YMMV.
Good luck!
On 10/15/21 1:14 PM, ariel sabiguero yawelak wrote:
> just consider that, maybe, keeping your mirror updated makes you spend more BW than
just having 5 machines updated through the Internet.
>
> I would be surprised if it is the other way around.
>
>
> best regards
>
>
> ariel
>
> El 15/10/21 a las 12:15, Paulo Celso escribió:
>> Thanks for the tip!
>>
>> Em sex., 15 de out. de 2021 às 11:13, Russell Jones <arjones85(a)gmail.com>
escreveu:
>>
>> Hi Paulo,
>>
>> You don't need permission or special access to make a private mirror.
Just sync from a public repository.
>>
>> On Thu, Oct 14, 2021 at 5:08 PM Paulo Celso <paulocelso68(a)gmail.com>
wrote:
>>
>> Hi, People...
>>
>> I'm writing from Brazil and the reason is because we have 5
computers at home and I would like to save internet connection by enabling a private
mirror.
>>
>> My name is Paulo Celso
>> My internet bandwidth is 300 mbps.
>> Country: Brazil
>> State: Amazonas, City: Manaus ... "rain forest"
>>
>> My best regards
>>
>>
>> Paulo.
>> _______________________________________________
>> Mirror-admin mailing list -- mirror-admin(a)lists.fedoraproject.org
>> To unsubscribe send an email to
mirror-admin-leave(a)lists.fedoraproject.org
>> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives:
https://lists.fedoraproject.org/archives/list/mirror-admin@lists.fedorapr...
>> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
>>
>>
>> _______________________________________________
>> Mirror-admin mailing list -- mirror-admin(a)lists.fedoraproject.org
>> To unsubscribe send an email to mirror-admin-leave(a)lists.fedoraproject.org
>> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives:
https://lists.fedoraproject.org/archives/list/mirror-admin@lists.fedorapr...
>> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
> _______________________________________________
> Mirror-admin mailing list -- mirror-admin(a)lists.fedoraproject.org
> To unsubscribe send an email to mirror-admin-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/mirror-admin@lists.fedorapr...
> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
_______________________________________________
Mirror-admin mailing list -- mirror-admin(a)lists.fedoraproject.org
To unsubscribe send an email to mirror-admin-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/mirror-admin@lists.fedorapr...
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
--
Atenciosamente,
Jonny
--
João Carlos Mendes Luís - Engenheiro de Redes e Sistemas