{"id":15713229,"url":"https://github.com/relrod/pkgbot","last_synced_at":"2025-04-09T12:13:29.526Z","repository":{"id":3643991,"uuid":"4711370","full_name":"relrod/pkgbot","owner":"relrod","description":"An IRC bot that lets you query the package database of many distributions/repositories.","archived":false,"fork":false,"pushed_at":"2014-05-21T04:22:36.000Z","size":152,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T06:20:16.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mitchellh/mapstructure","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/relrod.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}},"created_at":"2012-06-19T08:49:44.000Z","updated_at":"2022-03-17T20:22:24.000Z","dependencies_parsed_at":"2022-08-20T19:50:49.698Z","dependency_job_id":null,"html_url":"https://github.com/relrod/pkgbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relrod%2Fpkgbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relrod%2Fpkgbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relrod%2Fpkgbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relrod%2Fpkgbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relrod","download_url":"https://codeload.github.com/relrod/pkgbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036065,"owners_count":21037092,"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":[],"created_at":"2024-10-03T21:21:54.967Z","updated_at":"2025-04-09T12:13:29.493Z","avatar_url":"https://github.com/relrod.png","language":"Python","readme":"# pkgbot\n\nAn IRC bot which provides information about packages in various distros'\nrepos.\n\n# Using it\n\nThe bot is written in Python and requires the following modules:\n* twisted\n* requests\n* beautifulsoup\n\nOn Fedora and RHEL, this can be obtained with:\n`yum install python-twisted python-requests python-BeautifulSoup`\n\n(On RHEL/CentOS this requires EPEL.)\n\nThere's a set of scripts that determine how to obtain search results\nfor a given distro.\n\nThis is all still a work in progress, but I'd like to have at least two\nways to obtain package information:\n\n- Call a web service API (e.g. the one on apps.fedoraproject.org/packages)\n- Periodically obtain (and use) a package database to search.\n  - This is for distros that don't offer a web interface to their pkgdb.\n\nIn an irc channel, you can query the bot using:\n\n* .pkg fedora 17 kernel\n* .pkg archlinux firefox\n* .pkg ubuntu bash\n* .pkg debian emacs\n* ... etc.\n\n# How it works\n\nHow it works internally varies greatly based on which distro is being queried.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eDistro/Repo\u003c/th\u003e\n    \u003cth\u003eKey (to query bot with)\u003c/th\u003e\n    \u003cth\u003eSummary\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ca href=\"https://www.archlinux.org/\"\u003eArch Linux*\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003earchlinux\u003c/td\u003e\n    \u003ctd\u003e\n      Queries the JSON API at\n      https://www.archlinux.org/packages/search/json/?name=[...]\u003cbr /\u003e\n      * Does not currently support \"AUR\" packages.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n# What distros are supported?\n\nEverything listed in the above table is currently supported. However, I would\nlike to support the following soon, as well:\n\n* Fedora\n* EPEL\n* Debian\n* Ubuntu\n* FreeBSD\n* NetBSD\n* Homebrew (OS X)\n* [your favorite distro here]\n\nI'd also eventually like to support a `.provides` command that takes a distro\nargument and a file path argument, and determines which package owns the file.\nExample:\n\n```\n\u003c relrod\u003e .provides fedora-17 /usr/bin/firefox\n\u003c pkgbot\u003e relrod: firefox\n```\n\n# License \u0026 Hacking\n\nLicensed under GPLv2+.\n\nWhen hacking please ensure all tests pass (when they exist).\n\nAlso please ensure that your code passes PEP8 tests.\n\nA good .git/hooks/pre-commit hook is: `find -name '*.py' | xargs pep8`\n(and ensure the hook is `chmod +x`).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelrod%2Fpkgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelrod%2Fpkgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelrod%2Fpkgbot/lists"}