Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dockerized PPA downloader for apt installs.

NotificationsYou must be signed in to change notification settings

flavienbwk/ppa-mirror-docker

Repository files navigation

Dockerized PPA downloader for apt installs.

Why

Since Ubuntu 20.04,snap is the new package management standard for Ubuntu, over the old-schoolapt. Unlikeapt,snap packages embark all dependencies into a single file to be easily deployed (packages are self-contained).

However, it requires tricky configuration for offline infrastructures. For example, in Ubuntu 22.04, Chromium is not in the officialapt mirror anymore, which is either installable throughsnap orthrough the install of a PPA (Personal Packages Archives). This is not possible on "on-the-edge" infrastructures because it requires Internet.

This repositories allows to easily retrieve files from a specific PPA for Ubuntu systems, for packages to be downloadable through the traditionalapt command.

It is useful for large-clients infrastructures. Another reason might besnap is not allowed to be used by your organization.

Note : If you are allowed to usesnap and only have 1 package to download, you might considerdownloading it manually.

Downloading & updating

  1. Copy and edit the.env file with your own configuration

    cp .env.example .env
  2. Run themirror container :

    docker-compose builddocker-compose run mirror

Tips: We recommend you downloading the mirror froma cloud provider and then transfer files to your computer.

Serving

  1. Check your mirroring succeeded typingdu -sh ./mirror to check the folder volume. Size varies depending on the PPA downloaded.

  2. Run the server :

    docker-compose up -d server

    Server will run onlocalhost:8080

Client configuration

  1. Add the GPG keys of the downloaded PPAs

    cat ./mirror/ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/savoury1-ffmpeg4.pgp| gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/savoury1-ffmpeg4.pgp --import -cat ./mirror/ppa.launchpadcontent.net/savoury1/chromium/ubuntu/savoury1-chromium.pgp| gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/savoury1-chromium.pgp --import -
  2. Make your Ubuntu computer point to your mirror by creating a/etc/apt/source.list.d/ppa-mirror.list file as follow :

    # For default example with ppa.launchpadcontent.net/savoury1 on Ubuntu Jammy (amd64)deb [arch=amd64] http://localhost:8080/ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy maindeb [arch=amd64] http://localhost:8080/ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy main

👉 Feel free to add a reverse proxy or update thenginx configuration file to secure the mirror with SSL/TLS
👉 Feel free to sendpull requests as well !

About

Dockerized PPA downloader for apt installs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

[8]ページ先頭

©2009-2025 Movatter.jp