{"id":28940705,"url":"https://github.com/purinton/updater","last_synced_at":"2025-10-13T20:40:34.949Z","repository":{"id":300078223,"uuid":"1004996297","full_name":"purinton/updater","owner":"purinton","description":"Automated system updater and service manager for Red Hat-based Linux servers via SSH (yum/dnf). Not for Debian/Ubuntu.","archived":false,"fork":false,"pushed_at":"2025-07-11T16:11:40.000Z","size":481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-11T06:54:51.536Z","etag":null,"topics":["alma","automation","centos","dnf","fedora","linux","nodejs","redhat","rocky","service-management","ssh","systemd","updater","yum"],"latest_commit_sha":null,"homepage":"https://discord.gg/QSBxQnX7PF","language":"JavaScript","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/purinton.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,"zenodo":null}},"created_at":"2025-06-19T13:54:26.000Z","updated_at":"2025-07-11T16:11:43.000Z","dependencies_parsed_at":"2025-06-25T04:01:45.897Z","dependency_job_id":null,"html_url":"https://github.com/purinton/updater","commit_stats":null,"previous_names":["purinton/updater"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/purinton/updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Fupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Fupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Fupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Fupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purinton","download_url":"https://codeload.github.com/purinton/updater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purinton%2Fupdater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016929,"owners_count":26085911,"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-13T02:00:06.723Z","response_time":61,"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":["alma","automation","centos","dnf","fedora","linux","nodejs","redhat","rocky","service-management","ssh","systemd","updater","yum"],"created_at":"2025-06-23T02:01:05.826Z","updated_at":"2025-10-13T20:40:34.915Z","avatar_url":"https://github.com/purinton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![Purinton Dev](https://purinton.us/logos/brand.png)](https://discord.gg/QSBxQnX7PF)\n\n## @purinton/updater [![npm version](https://img.shields.io/npm/v/@purinton/updater.svg)](https://www.npmjs.com/package/@purinton/updater)[![license](https://img.shields.io/github/license/purinton/updater.svg)](LICENSE)[![build status](https://github.com/purinton/updater/actions/workflows/nodejs.yml/badge.svg)](https://github.com/purinton/updater/actions)\n\nA Node.js tool for automating system updates and service management across multiple remote Linux servers via SSH. **This tool is specifically designed for Red Hat-based systems (RHEL, CentOS, Fedora, Rocky, Alma, etc.) using `yum` or `dnf`. It is not intended for Debian/Ubuntu systems.** Includes notification support and can be run as a scheduled service.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Development](#development)\n- [Testing](#testing)\n- [Customization](#customization)\n- [Support](#support)\n- [License](#license)\n\n## Features\n\n- Automated yum/dnf update checks and full system updates via SSH (Red Hat-based systems only)\n- Service stop/start and verification\n- Discord webhook notifications for update status\n- Environment variable support via dotenv\n- Logging and signal handling via `@purinton/common`\n- Jest for testing\n- Can be run as a systemd service\n- MIT License\n\n\u003e **Note:** This tool is not intended for Debian/Ubuntu systems. It relies on `yum`/`dnf` commands and systemd service management.\n\n## Getting Started\n\n1. **Clone this repository:**\n\n   ```bash\n   git clone https://github.com/purinton/updater.git\n   cd updater\n   npm install\n   ```\n\n2. **Configure your servers:**\n   - Copy `servers.json.example` to `servers.json` and edit it to list your servers and their managed services:\n\n     ```json\n     {\n       \"user@host1\": [\"service1\", \"service2\"],\n       \"user@host2\": [\"service3\"]\n     }\n     ```\n\n   - Set up your `.env` file as needed for secrets and webhook URLs.\n\n\u003e **Supported OS:** Only Red Hat-based distributions (RHEL, CentOS, Fedora, Rocky, Alma, etc.) with `yum` or `dnf` are supported. Debian/Ubuntu are not supported.\n\n## Usage\n\n- **Check for available updates and send notifications:**\n\n  ```bash\n  node check-update.mjs\n  ```\n\n  - Checks each server in `servers.json` for available yum updates.\n  - Sends a Discord notification if updates are found or if errors occur.\n\n- **Perform full update, reboot, and service verification:**\n\n  ```bash\n  node update.mjs\n  ```\n\n  - Stops listed services, runs `yum -y update \u0026\u0026 reboot`, waits for the host to reboot, and verifies services are running again.\n\n- **Run as a service:**\n  - Use the provided `check-update.service` file to run update checks on a schedule with systemd.\n\n## Development\n\n- Main entries: `check-update.mjs` (update check/notification), `update.mjs` (full update/reboot cycle)\n- Start your app:\n\n  ```bash\n  node check-update.mjs\n  # or\n  node update.mjs\n  ```\n\n- Add your code in new files and import as needed.\n\n## Testing\n\n- Run tests with:\n\n  ```bash\n  npm test\n  ```\n\n- Tests are located in the `tests/` folder.\n\n## Customization\n\n- Extend or replace logging and notification as needed.\n- Add dependencies and scripts to fit your project.\n- Modify the update or service management logic as required.\n\n## Support\n\nFor help, questions, or to chat with the author and community, visit:\n\n[![Discord](https://purinton.us/logos/discord_96.png)](https://discord.gg/QSBxQnX7PF)[![Purinton Dev](https://purinton.us/logos/purinton_96.png)](https://discord.gg/QSBxQnX7PF)\n\n**[Purinton Dev on Discord](https://discord.gg/QSBxQnX7PF)**\n\n## License\n\n[MIT © 2025 Russell Purinton](LICENSE)\n\n## Links\n\n- [GitHub Repo](https://github.com/purinton/updater)\n- [GitHub Org](https://github.com/purinton)\n- [GitHub Personal](https://github.com/rpurinton)\n- [Discord](https://discord.gg/QSBxQnX7PF)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinton%2Fupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurinton%2Fupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurinton%2Fupdater/lists"}