{"id":19651134,"url":"https://github.com/n0rbert/debs-examine","last_synced_at":"2025-09-13T14:13:34.569Z","repository":{"id":225483962,"uuid":"766107422","full_name":"N0rbert/debs-examine","owner":"N0rbert","description":"Shell script for getting file lists for deb-package(s) which are going to be installed","archived":false,"fork":false,"pushed_at":"2024-04-29T20:32:45.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T21:56:56.761Z","etag":null,"topics":["apt","apt-key","deb","debian","debian-packages","dpkg"],"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":"2024-03-02T11:06:32.000Z","updated_at":"2025-04-30T20:13:40.000Z","dependencies_parsed_at":"2024-03-02T12:29:11.368Z","dependency_job_id":"b334d752-0850-44d3-95f7-fef3394db12a","html_url":"https://github.com/N0rbert/debs-examine","commit_stats":null,"previous_names":["n0rbert/debs-examine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/N0rbert/debs-examine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdebs-examine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdebs-examine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdebs-examine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdebs-examine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N0rbert","download_url":"https://codeload.github.com/N0rbert/debs-examine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N0rbert%2Fdebs-examine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274975839,"owners_count":25384283,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apt","apt-key","deb","debian","debian-packages","dpkg"],"created_at":"2024-11-11T15:05:23.508Z","updated_at":"2025-09-13T14:13:34.527Z","avatar_url":"https://github.com/N0rbert.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debs-examine\n\nShell script for getting file lists for deb-package(s) which are going to be installed\n\nUnder the hood this script uses Docker to obtain minimal file-system of needed system release and run `apt-file list` for provided input data. The created Docker images will be named with `de-` prefix, you can remove them manually later.\n\nUsage scenario is the following: one has a computer with set of installed deb-packages, saved the list of them by running `dpkg -l`, saved a list of the repositories and now one wants to selectively install this set of packages basing on their contents.\n\nSteps to use:\n\n```\n# get list of packages\ndpkg -l \u003e dpkg-l_pc\n\n# get list of repositories\ngrep ^deb -r /etc/apt --include=*.list --no-filename | sort -u \u003e sources.list_pc\n\n# get list of keys\napt-key list | grep ^pub -A1 | grep \"^ \" | tr -d ' ' \u003e keys_pc\napt-key list | grep ^pub | awk -F/ '{print $2}' | awk '{print $1}' \u003e\u003e keys_pc\n```\n\nThe one should copy all three files *dpkg-l_pc*, *sources.list_pc* and *keys_pc* into *in/* directory and run the script:\n\n\n```\n./debs-examine.sh -d debian -r bullseye -p in/dpkg-l_pc -k in/keys_pc -l in/sources.list_pc\n```\n\nwhere\n\n* `-d` (distribution, mandatory) - `debian` for Debian, `ubuntu` for Ubuntu;\n* `-r` (release, mandatory) - all versions starting from Debian 6 (`squeeze`), Ubuntu 12.04 LTS (`precise`) are supported by script;\n* `-p` (mandatory) - path to full `dpkg -l` file;\n* `-k` (optional) - path to file with keys for apt-key (separated by newlines);\n* `-l` (optional) - path to *sources.list* file.\n\nThe resulting filelists will be saved in the *out/* directory:\n\n* filelists for various repositories (*filelist_defarch*, *filelist_amd64*, *filelist_i386*);\n* filelists for backports repositories (*filelist_amd64_bpo*, *filelist_defarch_bpo*, *filelist_i386_bpo*).\n\nThese filelists may be grep'ed in any way to suite user needs. And finally one will be able to install only needed deb-packages into the target system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0rbert%2Fdebs-examine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0rbert%2Fdebs-examine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0rbert%2Fdebs-examine/lists"}