как создать зеркало rpm по запросу

sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'

Если Вы читаете строку в переменную оболочки, read уже делает это, если не проинструктировано иначе.

3
02.11.2015, 21:50
4 ответа

Здесь вы можете найти настроенный squid.conf для кэширования rpm:

https: // github.com/spacewalkproject/spacewalk/blob/master/proxy/installer/squid.conf

Вам просто нужно изменить настройки памяти и порта.

3
27.01.2020, 21:19

Не уверен, что вы нашли для этого хорошее решение, но в итоге я написал небольшую небольшую программу на Go. Он действует как кэширующий прокси-сервер и хранит RPM-пакеты, но передает их вверх по течению к файлам базы данных, поэтому всегда корректно. На данный момент он настроен для CentOS, Fedora EPEL и Arch Linux.

Вы можете увидеть его на https://github.com/yobert/remirror

1
27.01.2020, 21:19

apt-cacher-ngfunciona muy bien. Lo estamos usando algunas veces y funciona bien. Y recuerde usar solo espejos http (y no https )cuando lo use para hacerlo más eficiente (naturalmente, no puede ver ni almacenar en caché el tráfico https):

Para configurar los repositorios oficiales de fedora para que solo usen espejos http, puede agregar &protocol=httpal final de la URL de configuración metalink, p. para el repositorio fedorase convertirá en:

metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch&protocol=http

https://www.unix-ag.uni-kl.de/~bloch/acng/

A caching proxy. Specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those. See documentation of Apt-Cacher to learn what it's good for.

0
27.01.2020, 21:19

Вики Yum содержит страницу с обзором решений для кэширования

Немного по теме:

  • Установите «IntelligentMirror » и зарегистрируйтесь в MirrorManager .

    Pros
        Zero configuration, on the client side.
        Post setup it mostly just works and everything should be immediate.
        Only downloads what is required by the users.
        Fully automated server side, once setup/working. 
    Cons
        Requires setting up a local Squid + Apache-httpd + IntelligentMirror to serve the data.
        If the server is down then metalinks/MM will route you to an external mirror.
        Only intelligently caches packages, not metadata. 
    
  • (beta )avahi -пакеты -поддержка server.py и yum avahi (см.:http://james.fedorapeople.org/yum/avahi)

    Pros
        Zero configuration client.
        Zero configuration server.
        Only downloads what is required by the users. 
    Cons
        Not upstream yet (still beta).
        A client that doesn't run the avahi server side doesn't share it's downloads (so all clients need to run the "server").
        Requires working avahi on the network. 
    
0
27.01.2020, 21:19

Теги

Похожие вопросы