{"id":18566980,"url":"https://github.com/zocker1999net/approx-redirect","last_synced_at":"2025-10-12T07:41:51.335Z","repository":{"id":134002018,"uuid":"260647212","full_name":"Zocker1999NET/approx-redirect","owner":"Zocker1999NET","description":"Configures your local sources.list to adapt to a running approx proxy","archived":false,"fork":false,"pushed_at":"2020-07-10T00:04:00.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T01:43:25.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Zocker1999NET.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":"2020-05-02T08:44:22.000Z","updated_at":"2020-07-10T00:04:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e90c615-6551-4862-b802-c70671d2ecd6","html_url":"https://github.com/Zocker1999NET/approx-redirect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zocker1999NET/approx-redirect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fapprox-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fapprox-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fapprox-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fapprox-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zocker1999NET","download_url":"https://codeload.github.com/Zocker1999NET/approx-redirect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zocker1999NET%2Fapprox-redirect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010671,"owners_count":26084785,"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-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-11-06T22:24:59.200Z","updated_at":"2025-10-12T07:41:51.302Z","avatar_url":"https://github.com/Zocker1999NET.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Approx Redirector\n\nThis simple Python 3 script does redirect all entries in your `sources.list` and `sources.list.d` files to a given approx instance.\nIt redirects all entries cached by the approx server\nbut does not change uncached repositories.\n\n## Repository clones\n\nThe original repository will be stored on [GitHub](https://github.com/Zocker1999NET/approx-redirect).\nYou can use the original reopsitory if you want to use GitHub.\nAlso issues and pull requests will be collected there for convenience.\n\nThis repository will be cloned to my own server.\nYou can use the [clone](https://git.banananet.work/zocker/approx-redirect) instead of this repository\nif you want to avoid use GitHub.\n\n## Features\n\n- Looks up cacheable repositories\n- Supports ≈99.9 % of all approx configurations out there (except approx forcing https)\n- Verboses changes if requested\n- Can rewrite sources files if run as `root`\n- Does backup old sources files for easy restoring\n- Supports mirror lists for allowing fallback to direct connection (see [`man apt-transport-mirror`](https://manpages.debian.org/buster/apt/apt-transport-mirror.1.en.html))\n  (**WARNING**: This feature is not considered stable, please use with caution)\n\n### ToDo\n\n- Support https for approx\n\n## Usage\n\n- Obviously requires a Debian-based system\n- Requires `python3` and `python3-request` to be installed\n\nAssuming `approx` is the hostname of the approx cache you want to use.\nYou can use an IP address instead.\nYou can append a port by using `approx:9999`.\nBy default `http://` will be used\nbut you can specify https as protocol, too: `https://approx` (**not supported yet**).\n\n```\n./redirect.py -v approx\n```\n\nThe script will check which entries can be redirected\nand report these to stdout.\nIf you want to approve these changes, run as `root`:\n\n```\n./redirect.py -vc approx\n```\n\nNow your system will use the approx cache.\nThe old entries can be found in the backup files.\n\n### Mirror Mode\n\nTo use mirror mode, follow the same approach as above,\nbut append the flag `-m` or `--mirror-mode` to the arguments.\n\n## Contribute\n\nFeel free to contribute to this project.\nPlease follow the common [style guide for Python](https://www.python.org/dev/peps/pep-0008/).\n\n## License\n\nThis project is licensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzocker1999net%2Fapprox-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzocker1999net%2Fapprox-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzocker1999net%2Fapprox-redirect/lists"}