{"id":19651131,"url":"https://github.com/n0rbert/deb-download","last_synced_at":"2025-04-28T16:31:17.603Z","repository":{"id":48129936,"uuid":"330159707","full_name":"N0rbert/deb-download","owner":"N0rbert","description":"Shell script for downloading deb-package(s) from modern Debian or Ubuntu repositories","archived":false,"fork":false,"pushed_at":"2025-04-17T20:50:47.000Z","size":30,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T11:07:00.042Z","etag":null,"topics":["deb","debian","debian-packages","docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/N0rbert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-16T12:39:18.000Z","updated_at":"2025-04-17T20:54:20.000Z","dependencies_parsed_at":"2023-01-22T02:51:07.480Z","dependency_job_id":"f1580a8a-6eda-40cc-914b-ed6279c3ac53","html_url":"https://github.com/N0rbert/deb-download","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdeb-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdeb-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdeb-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdeb-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N0rbert","download_url":"https://codeload.github.com/N0rbert/deb-download/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251345882,"owners_count":21574801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deb","debian","debian-packages","docker"],"created_at":"2024-11-11T15:05:23.224Z","updated_at":"2025-04-28T16:31:13.990Z","avatar_url":"https://github.com/N0rbert.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deb-download\n\nShell script for downloading deb-package(s) from modern Debian or Ubuntu repositories\n\nUnder the hood this script uses Docker to obtain minimal file-system of needed system release. And then it download package(s) to the `storage` sub-directory and saves the list of download URL(s) in `storage/urls.txt` file. The created Docker images will be named with `dd-` prefix, you can remove them manually later.\n\nThe main motivation to write this script was partial removal of Python 2 stuff from Ubuntu 20.04 LTS official repositories. For regular users this means that applications like ZeNMap, FSLint are no longer available from `apt`/`apt-get`. So users need to download them manually from \u003chttps://packages.ubuntu.com\u003e. This script automates this process.\n\nThe `deb-download.sh` takes at least three pairs of arguments, as shown in example below:\n\n```\n./deb-download.sh -d ubuntu -r bionic -p zenmap\n```\n\n* `-d` (distribution, mandatory) - `debian` for Debian, `ubuntu` for Ubuntu, `mint` for LinuxMint, `astra` for AstraLinux or `kali` for Kali Linux;\n* `-r` (release, mandatory) - all versions starting from Debian 6 (`squeeze`), Ubuntu 12.04 LTS (`precise`), LinuxMint (`17`), AstraLinux (`2.12`, `1.7` and `1.8`) and Kali Linux (`rolling`) are supported by script;\n* `-p` (with quotes for multiple packages, mandatory) - represent package(s) name(s) - in the above example it is single `zenmap` package. For two packages use `\"mc htop\"` (for example);\n* `-t` (third-party PPA or full deb-line for `add-apt-repository`, optional) - for example `ppa:user/repo` or `deb http://ppa.launchpad.net/user/repo/ubuntu bionic main` with the corresponding key for `apt-key` (`-k AABBCCDDEEFF0011` for this example);\n* `-s` (get source code of Debian or Ubuntu package(s), optional);\n* `-b` (use deb-package(s) from backports pocket, optional).\n\nNote: if you have configured proxy in your network, then you can supply its address as the argument to the application - `http_proxy=http://192.168.12.34:8000 ./deb-download.sh -d ubuntu -r bionic -p zenmap` .\n\nHow to start using this script:\n\n1. Install Docker and dependencies to the host system\n   \n       sudo apt-get update\n       sudo apt-get install docker.io git\n\n1. Add current user to the `docker` group\n   \n       sudo usermod -a -G docker $USER\n   \n   then reboot machine.\n\n1. Clone this repository\n\n       cd ~/Downloads\n       git clone https://github.com/N0rbert/deb-download.git\n\n1. Fetch some random deb-package\n\n       cd deb-download\n       chmod +x deb-download.sh\n       ./deb-download.sh -d ubuntu -r bionic -p fslint\n\n1. Carefully inspect the contents of `storage` folder, then try to install main deb-package to the target system, then fix its dependencies one-by-one. For better understanding consult with \u003chttps://packages.ubuntu.com\u003e.\n\n   Please also note that this `storage` folder will be cleared on next run of the script!\n\n**Warning:** author of this script can't provide any warranty about successful installation of downloaded deb-packages on the target system. Be careful!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0rbert%2Fdeb-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0rbert%2Fdeb-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0rbert%2Fdeb-download/lists"}