https://github.com/crycode-de/deb-downloader
Bash script to download deb files from a repository
https://github.com/crycode-de/deb-downloader
Last synced: 3 months ago
JSON representation
Bash script to download deb files from a repository
- Host: GitHub
- URL: https://github.com/crycode-de/deb-downloader
- Owner: crycode-de
- License: gpl-2.0
- Created: 2023-01-31T14:00:11.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T14:00:50.000Z (about 3 years ago)
- Last Synced: 2025-01-21T02:42:30.501Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# deb-downloader
The deb-downloader is bash script to download deb files from a repository.
This can be used for example if you want to download a package to install it on an offline system.
## Usage
### Required arguments
* `-m ` The URL of the mirror.
* `-d ` Codename of the distribution.
* `-p ` Name of the package which should be downloaded.
### Optional arguments
* `-c ` Component(s) inside the repository. Defaults to 'main'.
* `-a ` Type of the processor architecture of the target system. Defaults to 'amd64'.
* `-D` Detect and load all dependencies for the package.
* `-t` Test run. Will only load the index files, detect the dependencies and print the download links.
* `-h` Show this help.
## Examples
Download 'nano' for Ubuntu xenial (16.04)
```
./deb-downloader.sh -m http://archive.ubuntu.com/ubuntu/ -d xenial -p nano
```
Download 'gimp' for Ubuntu artful (17.10) using the 'universe' component for i386 systems
```
./deb-downloader.sh -m http://archive.ubuntu.com/ubuntu/ -d artful -c universe -a i386 -p gimp
```
Download 'ntp' for Raspbian Stretch using the default Raspbian repo settings and including all dependencies
```
./deb-downloader.sh -m http://archive.raspbian.org/raspbian/ -d stretch -c "main contrib non-free rpi" -a armhf -p ntp -D
```
## License
Licensed under GPL Version 2
Copyright (c) 2018 Peter Müller (https://crycode.de/)