{"id":18596052,"url":"https://github.com/losuler/dnf-notify","last_synced_at":"2026-05-18T02:31:35.805Z","repository":{"id":133523290,"uuid":"416529363","full_name":"losuler/dnf-notify","owner":"losuler","description":"Notify about new updates in dnf.","archived":false,"fork":false,"pushed_at":"2021-12-22T12:39:09.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T14:51:17.067Z","etag":null,"topics":["automatic","centos","dnf","fedora","notifications","rpm","systemd","updates"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/losuler.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":"2021-10-12T23:38:29.000Z","updated_at":"2021-12-22T12:39:12.000Z","dependencies_parsed_at":"2023-07-10T01:33:20.230Z","dependency_job_id":null,"html_url":"https://github.com/losuler/dnf-notify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/losuler/dnf-notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fdnf-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fdnf-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fdnf-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fdnf-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losuler","download_url":"https://codeload.github.com/losuler/dnf-notify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Fdnf-notify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["automatic","centos","dnf","fedora","notifications","rpm","systemd","updates"],"created_at":"2024-11-07T01:22:55.255Z","updated_at":"2026-05-18T02:31:35.790Z","avatar_url":"https://github.com/losuler.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cp align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ch3 align=\"center\"\u003eDNF Notify\u003c/h3\u003e\n    \u003cp align=\"center\"\u003e\n      Notify about new updates in \u003ccode\u003ednf\u003c/code\u003e.\n    \u003c/p\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## About\n\nA simple bash script to overcome the limitations in notifications in `dnf-automatic`. In the past I had used a hack on the `[command_email]` section in `automatic.conf` to send notifications via Telegram with the following:\n\n```sh\ncommand_format = \"curl --silent --output /dev/null --data-urlencode 'chat_id={{ chat_id }}' --data @- 'https://api.telegram.org/bot{{ bot_token }}/sendMessage'\"\n```\n\nHowever due to the desire to use Matrix and have a different output than just what updates had been automatically installed, along with the added complexity that would come with escaping this for `json`, I wrote this simple script to do this for me.\n\n## Usage\n\n```\nUsage: dnf-notify [OPTION]...\nCheck for and notify of new updates available.\n  -c PATH       Path to the config file\n  -h            Print help and exit\n```\n\n## Configuration\n\nEnable the service you would like to recieve notifications on (e.g. Matrix):\n\n```sh\n# Enable/Disable (Default: Disable)\nMATRIX=\"enable\"\n```\n\n### Matrix\n\n`MATRIX_DOMAIN`\n\nThis is the domain for the Matrix server your room is hosted on. For most people this will likely be `matrix.org`.\n\n`MATRIX_ROOM`\n\nThis is the internal room ID. The syntax is `!` followed by a random set of letters, for example `!abCDEfGhiJKLMnopQRs`. In Element you can find this by going to the room ➝ `Settings` ➝ `Advanced`.\n\n`MATRIX_TOKEN`\n\nThis is the access token or secret that is used to authenticate the sending of the messages. You may retrieve this by either logging into Element through the browser or running the following command and copying the value from `access_token`:\n\n```sh\ncurl -XPOST -d '{\"type\":\"m.login.password\", \"user\":\"$USERNAME\", \"password\":\"$PASSWORD\"}' \\\n    \"https://matrix.org/_matrix/client/r0/login\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Fdnf-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosuler%2Fdnf-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Fdnf-notify/lists"}