{"id":20058831,"url":"https://github.com/mosowaz/automated-update-script-","last_synced_at":"2025-09-20T13:31:53.831Z","repository":{"id":208468628,"uuid":"717299656","full_name":"mosowaz/automated-update-script-","owner":"mosowaz","description":"Automating script with systemd timer","archived":false,"fork":false,"pushed_at":"2023-11-24T17:03:38.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-20T13:58:02.317Z","etag":null,"topics":["linux-package-manager","systemd","systemd-service","systemd-timer"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mosowaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-11T03:36:13.000Z","updated_at":"2024-02-21T18:04:10.000Z","dependencies_parsed_at":"2023-11-24T17:28:31.362Z","dependency_job_id":"a5b66cc8-b032-4646-9667-2146c6463af1","html_url":"https://github.com/mosowaz/automated-update-script-","commit_stats":null,"previous_names":["mosowaz/automated-update-script-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosowaz%2Fautomated-update-script-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosowaz%2Fautomated-update-script-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosowaz%2Fautomated-update-script-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosowaz%2Fautomated-update-script-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mosowaz","download_url":"https://codeload.github.com/mosowaz/automated-update-script-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233665637,"owners_count":18710919,"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":["linux-package-manager","systemd","systemd-service","systemd-timer"],"created_at":"2024-11-13T13:04:31.893Z","updated_at":"2025-09-20T13:31:48.554Z","avatar_url":"https://github.com/mosowaz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nThis script will update most linux distribution packages (i.e SLES, Opensuse, Debian, Ubuntu (and variants), Red Hat Enterprise Linux (and variants) ).\n\nYou will need to create the file as root (as sudo is required to run updates).\n\nYou can use either cron or systemd timer to automate the script.\nIn this repo, I'm using systemd timer.\n\n## script\nPut the update script (multi-distro-update_script.sh) in your \"~/bin\" directory.\n\nRun `chmod +rx multi-distro-update_script.sh` to make it executable.\n\n## Automation of script\n- Create these two unit files (\"auto-update.service\" and \"auto-update.timer\") under `/etc/systemd/system`.\n- To create them as root owner, change directory to `/etc/systemd/system`\n```\n/etc/systemd/system$ sudo touch auto-update.service auto-update.timer\n```\n- Then copy and paste the commands from the repo files for created files\n\n- Run these commands;\n```\n/etc/systemd/system$ sudo systemctl daemon-reload\n/etc/systemd/system$ sudo systemctl enable auto-update.service\n/etc/systemd/system$ sudo systemctl enable auto-update.timer\n/etc/systemd/system$ sudo systemctl start auto-update.service\n```\ncheck the status of their statuses with\n```\n/etc/systemd/system$ systemctl status -l auto-update.service \n/etc/systemd/system$ systemctl status -l auto-update.timer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosowaz%2Fautomated-update-script-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosowaz%2Fautomated-update-script-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosowaz%2Fautomated-update-script-/lists"}