{"id":20260659,"url":"https://github.com/tim0n3/debian-package-updater","last_synced_at":"2026-04-14T10:31:25.557Z","repository":{"id":198711802,"uuid":"701369753","full_name":"tim0n3/debian-package-updater","owner":"tim0n3","description":"Automate the upgrade of packages and installation of unmet deps on a debian system","archived":false,"fork":false,"pushed_at":"2023-10-11T11:24:09.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T18:48:29.369Z","etag":null,"topics":["apt","bash","debian","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tim0n3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-10-06T13:51:14.000Z","updated_at":"2023-10-06T14:12:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1fd43cc-1196-43fb-9577-f98f4db47b78","html_url":"https://github.com/tim0n3/debian-package-updater","commit_stats":null,"previous_names":["tim0n3/debian-package-updater"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tim0n3/debian-package-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Fdebian-package-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Fdebian-package-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Fdebian-package-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Fdebian-package-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim0n3","download_url":"https://codeload.github.com/tim0n3/debian-package-updater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Fdebian-package-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","bash","debian","linux"],"created_at":"2024-11-14T11:21:23.990Z","updated_at":"2026-04-14T10:31:25.523Z","avatar_url":"https://github.com/tim0n3.png","language":"Shell","funding_links":["https://www.paypal.com/donate?hosted_button_id=ULMMXE4DLQVZS"],"categories":[],"sub_categories":[],"readme":"# debian-package-updater\n\nThis Bash script is designed to automate the process of checking for updates and upgrading packages on a Debian-based Linux system. It provides options for handling unmet dependencies and forcing installations when necessary.\n\n## Usage\n\nTo use this script, follow the instructions below:\n\n1. **Download the Script**: Download the Bash script to your Linux system.\n\n2. **Make the Script Executable**: Before running the script, ensure it has execution permission. You can use the `chmod` command to grant execute permission:\n   ```\n   chmod +x debian-package-updater.sh\n   ```\n\n3. **Run the Script**: You can run the script without any options to check for updates and upgrade packages normally. Use the following command:\n   ```\n   ./debian-package-updater.sh\n   ```\n\n4. **Force Install Unmet Dependencies**: If the script detects unmet dependencies during the upgrade process, you can use the `-f` option to force the installation of packages with unresolved dependencies. Example:\n   ```\n   ./debian-package-updater.sh -f\n   ```\n\n## Configuration\n\nYou can customize the script's behavior by modifying the following variables at the beginning of the script:\n\n- `LOG_DIR`: Specifies the directory where log files will be stored. By default, it's set to \"/var/log/debian-package-updater\".\n\n- `STDOUT_LOG`: Defines the path to the standard output log file.\n\n- `STDERR_LOG`: Defines the path to the standard error log file.\n\n- `FORCE_INSTALL`: Controls whether to force install packages with unmet dependencies (default is `false`).\n\n## Logging\n\nThe script logs both standard output and standard error messages to separate log files. You can find the log files in the directory specified by `LOG_DIR`. The log files are named `stdout.log` and `stderr.log`.\n\n## Functions\n\nThe script includes several functions to perform specific tasks:\n\n- `log_message()`: Logs messages to both standard output and a file.\n\n- `log_error()`: Logs error messages to both standard error and a file and exits with a status code of 1.\n\n- `check_force_install()`: Checks for unmet dependencies and attempts to fix them if the `-f` option is used.\n\n- `check_and_install_updates()`: Checks for updates, upgrades packages, and calls `check_force_install()`.\n\n- `main()`: The main function parses command line options, creates the log directory if it doesn't exist, and calls `check_and_install_updates()`.\n\n## Dependencies\n\nThis script relies on the `apt-get` command, which is commonly available on Debian-based Linux distributions. Ensure that your system has the necessary package management tools installed.\n\n## Notes\n\n- It's recommended to run this script with superuser privileges (e.g., using `sudo`) to ensure proper access to system files and package management.\n\n- Be cautious when using the `-f` option, as it may lead to unexpected behavior if used indiscriminately. It is primarily intended to resolve unmet dependency issues.\n\n- This script is designed for Debian-based Linux distributions. It may not work correctly on other Linux distributions with different package managers.\n\n## License\n\nThis script is provided under the [MIT License](LICENSE.md). Feel free to modify and distribute it as needed, but use it at your own risk.\n\n## Donations\n\nIf you want to show your appreciation, you can donate via [PayPal](https://www.paypal.com/donate?hosted_button_id=ULMMXE4DLQVZS) . Thanks!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim0n3%2Fdebian-package-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim0n3%2Fdebian-package-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim0n3%2Fdebian-package-updater/lists"}