{"id":13586544,"url":"https://github.com/davidfoerster/aptsources-cleanup","last_synced_at":"2025-04-13T05:08:38.740Z","repository":{"id":46821791,"uuid":"64662399","full_name":"davidfoerster/aptsources-cleanup","owner":"davidfoerster","description":"Detects and interactively deactivates duplicate Apt source entries and deletes sources list files without valid enabled source entries (as requested in https://askubuntu.com/a/762815/175814).","archived":false,"fork":false,"pushed_at":"2024-08-16T01:40:50.000Z","size":351,"stargazers_count":680,"open_issues_count":2,"forks_count":88,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-13T05:08:33.474Z","etag":null,"topics":["apt","debian","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidfoerster.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}},"created_at":"2016-08-01T11:44:32.000Z","updated_at":"2025-04-07T08:29:56.000Z","dependencies_parsed_at":"2022-09-11T05:01:22.966Z","dependency_job_id":"81f4b6b4-5654-42fa-99bc-cb1350cb9198","html_url":"https://github.com/davidfoerster/aptsources-cleanup","commit_stats":{"total_commits":333,"total_committers":2,"mean_commits":166.5,"dds":0.006006006006005982,"last_synced_commit":"cf291129b351f4e126d53ed7382a61734052db99"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoerster%2Faptsources-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoerster%2Faptsources-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoerster%2Faptsources-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoerster%2Faptsources-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfoerster","download_url":"https://codeload.github.com/davidfoerster/aptsources-cleanup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"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":["apt","debian","ubuntu"],"created_at":"2024-08-01T15:05:38.676Z","updated_at":"2025-04-13T05:08:38.705Z","avatar_url":"https://github.com/davidfoerster.png","language":"Python","funding_links":[],"categories":["HarmonyOS","Python"],"sub_categories":["Windows Manager"],"readme":"## Purpose\n\nDetects and interactively deactivates duplicate Apt source entries and\ndeletes sources list files without valid enabled source entries in\n`/etc/sources.list` and `/etc/sources.list.d/*.list`.\n\n\n## Prerequisites\n\n**TL;DR:** Have a supported Ubuntu or other Debian-based system and install a\ncouple of Python packages:\n\n    sudo apt install python3-apt python3-regex\n\nFor details see below.\n\n\n### Mandatory\n\n  * Python 3.4+\n\n  * The `aptsources` module. In Debian-based distribution you can find it in\n    the `python3-apt` package.\n\n### Optional\n\n  * The `regex` module for improved (non-European) language support.\n    Package name: `python3-regex`.\n\n\n## Download / Installation\n\n### Option 1: Python ZIP application\n\n 1. Download the ZIP application bundle:\n\n      * [Latest Release](https://github.com/davidfoerster/aptsources-cleanup/releases/latest)\n      * [All Releases](https://github.com/davidfoerster/aptsources-cleanup/releases)\n\n 2. Mark it as executable through your file manager or the command-line:\n\n        chmod a+x aptsources-cleanup.pyz\n\n\n### Option 2: From source\n\nAlternatively, you can download the source code and run it in Python (albeit without translations).\n\n\n## Usage\n\n  * From a ZIP application bundle:\n\n        sudo ./aptsources-cleanup.pyz\n\n  * From source code:\n\n        sudo ./aptsources-cleanup\n\nFor a (slightly more) detailed description and individual command-line options\nsee the output of\n\n    ./aptsources-cleanup.pyz --help\n\nor\n\n    ./aptsources-cleanup --help\n\ndepending on the deployment type.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfoerster%2Faptsources-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfoerster%2Faptsources-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfoerster%2Faptsources-cleanup/lists"}