https://github.com/rbourgeat/apk-offline-package-downloader
https://github.com/rbourgeat/apk-offline-package-downloader
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rbourgeat/apk-offline-package-downloader
- Owner: rbourgeat
- Created: 2025-03-05T14:22:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-05T15:12:54.000Z (8 months ago)
- Last Synced: 2025-03-05T16:26:07.903Z (8 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# APK Package Downloader
This project provides a simple shell script to download APK packages using Docker and Alpine Linux. It verifies the presence of Docker, checks for a [./packages.txt](packages.txt) file listing the desired packages, and then fetches these packages, saving them in the local `./packages` directory.
## Prerequisites
Ensure you have the following installed on your system:
- [Docker](https://www.docker.com/)
- A [./packages.txt](packages.txt) file containing the list of packages to be downloaded, located in the same directory as the script.
## Usage
1. Clone the repository:
```bash
git clone git@github.com:rbourgeat/APK-Offline-Package-Downloader.git
cd APK-Offline-Package-Downloader
```2. Create and populate the [./packages.txt](packages.txt) file with the APK packages you want to download. Each package should be on a new line.
3. Run the script:
```bash
bash download_apk.sh
```4. (Optional) Use the `--community` argument to include the `edge/community` repository:
```bash
bash download_apk.sh --community
```5. (Optional) Generate the APKINDEX file for the downloaded packages:
```bash
bash generate_apkindex.sh
```## Example `packages.txt` File
```txt
vim
curl
git
```