{"id":20122872,"url":"https://github.com/freaky/pkg-cruft","last_synced_at":"2025-07-16T01:34:08.744Z","repository":{"id":142942540,"uuid":"141483049","full_name":"Freaky/pkg-cruft","owner":"Freaky","description":"Find cruft on pkgng systems like FreeBSD","archived":false,"fork":false,"pushed_at":"2018-08-15T01:04:57.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T07:32:09.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/Freaky.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-18T19:50:39.000Z","updated_at":"2020-02-15T13:01:09.000Z","dependencies_parsed_at":"2023-06-26T02:07:52.972Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/pkg-cruft","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/Freaky%2Fpkg-cruft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fpkg-cruft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fpkg-cruft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fpkg-cruft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/pkg-cruft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241566177,"owners_count":19983260,"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-11-13T19:41:34.795Z","updated_at":"2025-03-02T20:26:00.712Z","avatar_url":"https://github.com/Freaky.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkg-cruft\n\nA small Ruby script for helping deal with cruft on pkgng (FreeBSD etc) systems.\n\n## Requirements\n\n* pkgng (tested on FreeBSD 11.2)\n* procstat (for checkrestart)\n* Ruby (tested on 2.4.4 and 2.5.1); no gems used or needed.\n\n## Synopsis\n\n```\n% pkg-cruft [ help | defunct | files | dirs | libcheck | checkrestart ]\n```\n\n## Subcommands:\n\n### libcheck\n\nCheck for packaged files that link against unpackaged, compat, or obsolete\nlibraries, ignoring files specified in env `IGNORE_LLD`.\n\n```\n% pkg-cruft libcheck\ncompat10x-amd64-10.3.1003000.20170608: /usr/local/lib/compat/pam_ssh.so.5 missing library libssh.so.5\ncompat10x-amd64-10.3.1003000.20170608: /usr/local/lib32/compat/pam_ssh.so.5 missing library libssh.so.5\n```\n\n### checkrestart\n\nCheck for running processes that may require restarting due to replaced\nexecutables or libraries.  Named for the similar Linux command.\n\nRun as root to check all running processes.  False-positives are possible.\n\n```\n# pkg-cruft checkrestart\n[MISSING EXECUTABLE] (tmux-2.7)? running as 17319 (tmux)\n[MISSING EXECUTABLE] (zsh-5.5.1)? running as 20115 (zsh)\n[MISSING EXECUTABLE] (weechat-2.2)? running as 36747 (weechat)\n/usr/local/bin/mosh-server (mosh-1.3.2_4) running as 53815 (mosh-server)\n```\n\n### files\n\nList files in PREFIX that are not provided by any installed package, ignoring\nfiles specified in env `IGNORE_UNPACKAGED`.\n\n```\n# pkg-cruft files\n/usr/local/apache-tomcat-6.0/conf/Catalina/localhost/host-manager.xml\n/usr/local/apache-tomcat-6.0/conf/Catalina/localhost/manager.xml\n...\n```\n\n### dirs\n\nList directories in PREFIX that do not contain any packaged files, ignoring\nany specified in `IGNORE_UNPACKAGED`.\n\n```\n# pkg-cruft dirs\n/usr/local/openjdk8/jre/lib/applet\n/usr/local/share/texmf/tex/latex\n...\n```\n\n### defunct\n\nList local packages that are not available from remote repositories.\n\n```\n% pkg-cruft defunct\nbsdpan-Mail-SpamAssassin-CompiledRegexps-body_0\n```\n\n## Configuration\n\nConfiguration is via environment variables:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `PREFIX`   | `/usr/local` | Installation prefix |\n| `CONCURRENCY` | `16` | Workers to use for `libcheck` |\n| `IGNORE_UNPACKAGED` | `www:poudriere:varnish` | :-separated patterns to ignore in `files` and `dirs`, anchored on PREFIX |\n| `IGNORE_LLD` | `go/src/*/testdata/*` | :-separated patterns to ignore in `libcheck` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fpkg-cruft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Fpkg-cruft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fpkg-cruft/lists"}