{"id":24649014,"url":"https://github.com/archlinux/dbscripts","last_synced_at":"2025-07-30T01:39:53.600Z","repository":{"id":31763554,"uuid":"35329784","full_name":"archlinux/dbscripts","owner":"archlinux","description":"Arch Linux repository management scripts (read-only mirror)","archived":false,"fork":false,"pushed_at":"2023-01-30T20:20:11.000Z","size":903,"stargazers_count":34,"open_issues_count":2,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-28T06:06:38.904Z","etag":null,"topics":["archlinux","pacman","pkgbuild"],"latest_commit_sha":null,"homepage":"https://gitlab.archlinux.org/archlinux/dbscripts","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/archlinux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-05-09T13:35:37.000Z","updated_at":"2025-04-17T10:47:39.000Z","dependencies_parsed_at":"2023-02-10T11:15:29.193Z","dependency_job_id":null,"html_url":"https://github.com/archlinux/dbscripts","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/archlinux/dbscripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fdbscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fdbscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fdbscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fdbscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archlinux","download_url":"https://codeload.github.com/archlinux/dbscripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fdbscripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267793712,"owners_count":24145084,"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-07-29T02:00:12.549Z","response_time":2574,"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":["archlinux","pacman","pkgbuild"],"created_at":"2025-01-25T17:08:43.336Z","updated_at":"2025-07-30T01:39:53.575Z","avatar_url":"https://github.com/archlinux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arch Linux repository management scripts\n## Configuration\n* The default configuration can be found in `config`.\n* An optional `config.local` may override the default configuration.\n* The path and name of the local configuration file can be overridden by setting the `DBSCRIPTS_CONFIG` environment variable.\n## Overview\nThe executables that you (might) care about are:\n\n    dbscripts/\n    ├── cron-jobs/\n    │   ├── devlist-mailer\n    │   ├── ftpdir-cleanup\n    │   ├── integrity-check\n    │   └── sourceballs\n    ├── db-move\n    ├── db-remove\n    ├── db-repo-add\n    ├── db-repo-remove\n    ├── db-update\n    └── testing2x\n\nOk, now let's talk about what those are.\n\nThere are 3 \"main\" programs:\n\n - `db-update` : add packages to repositories\n - `db-remove` : remove packages from repositories\n - `db-move`   : move packages from one repository to another\n\nMoving packages from testing to stable repositories is such a common\ntask that we have a wrapper around `db-move` to make it easier:\n\n - `testing2x`\n\nOf course, sometimes things go wrong, and you need to drop to a\nlower-level, but you don't want to go all the way down to pacman's\n`repo-add`/`repo-remove`.  So, we have:\n\n - `db-repo-add`\n - `db-repo-remove`\n\nNow, we'd like to be able to check that the repos are all OK, so we\nhave\n\n - `cron-jobs/integrity-check`\n\nWhen we remove a package from a repository, it stays in the package\n\"pool\".  We would like to be able to eventually remove packages from\nthe pool, to reclaim the disk space:\n\n - `cron-jobs/ftpdir-cleanup`\n\nThings that haven't been mentioned yet:\n\n - `cron-jobs/devlist-mailer`\n - `cron-jobs/sourceballs`\n## Testing\n* Install the `make` and `podman` or `docker` packages depending on your\npreferrence. The default expects docker but pomdan can be used if\n`DOCKER=podman` is specified. When using docker, start the docker daemon by\nissuing `systemctl start docker`.\n* The test suite can now be run with `make test`.\n* A coverage report can be generated with `make test-coverage`. Open `coverage/index.html` in your web browser to inspect the results.\n\nBats arguments or specific test can be run by providing `CASES` and `BATS_ARGS`:\n\n```\nmake test DOCKER=podman CASES=cases/db-update.bats BATS_ARGS='-f Wrong'\n```\n\n## License\nFor a long time, dbscripts didn't have an explicit license. Currently it is\nprimarily licensed under the GPL-2.0-or-later, but some code is of unknown\nlicense. Details on clarifying the license status may be found in LICENSE_STATUS.md\n\ntl;dr\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see http://www.gnu.org/licenses/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchlinux%2Fdbscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchlinux%2Fdbscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchlinux%2Fdbscripts/lists"}