{"id":16805649,"url":"https://github.com/gcarq/portage-lostfiles","last_synced_at":"2025-10-04T03:34:01.767Z","repository":{"id":52084479,"uuid":"188697512","full_name":"gcarq/portage-lostfiles","owner":"gcarq","description":"A simple script to identify files not tracked by Portage package manager","archived":false,"fork":false,"pushed_at":"2025-02-21T12:23:11.000Z","size":52,"stargazers_count":23,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T07:51:12.472Z","etag":null,"topics":["gentoo","portage"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcarq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["gcarq"]}},"created_at":"2019-05-26T15:04:43.000Z","updated_at":"2025-02-21T12:23:14.000Z","dependencies_parsed_at":"2024-10-27T11:57:36.541Z","dependency_job_id":"55efdf6c-6f7d-4dcc-bbf0-1bf0290776ba","html_url":"https://github.com/gcarq/portage-lostfiles","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/gcarq/portage-lostfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fportage-lostfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fportage-lostfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fportage-lostfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fportage-lostfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcarq","download_url":"https://codeload.github.com/gcarq/portage-lostfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcarq%2Fportage-lostfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278260396,"owners_count":25957661,"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-04T02:00:05.491Z","response_time":63,"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":["gentoo","portage"],"created_at":"2024-10-13T09:48:55.002Z","updated_at":"2025-10-04T03:34:01.725Z","avatar_url":"https://github.com/gcarq.png","language":"Python","funding_links":["https://github.com/sponsors/gcarq"],"categories":[],"sub_categories":[],"readme":"# Portage Lostfiles\nA simple script to identify files not tracked by\n[Portage](https://wiki.gentoo.org/wiki/Portage) package manager.\nThis package can be installed via the [GURU overlay](https://wiki.gentoo.org/wiki/Project:GURU).\n\n```\n# emerge -av app-portage/portage-lostfiles\n```\n\n## Why\nOver time a large number of untracked files can accumulate,\neither created manually or leftovers from uninstalled packages,\nwhich can result in subtle bugs or misconfigurations.\n\n## Notes\nSymlinks are not reported as lost as long as the link target exists and is tracked,\nthis is the same behavior as implemented in `equery b \u003cpath\u003e`.\n\nSome common paths are not reported (e.g.: `/etc/group`, `/etc/machine-id`, ...),\nthose are defined in `IGNORED_PATHS` and `PKG_PATHS` in `lostfiles.py`.\n\n## Usage\n```bash\ngit clone https://github.com/gcarq/portage-lostfiles.git\ncd portage-lostfiles\n$ ./lostfiles.py\n/etc/env.d/000opengl\n/etc/env.d/99local\n/etc/modprobe.d/blacklist.conf\n/etc/X11/xorg.conf.d/20opengl.conf\n/etc/sysctl.d/98-idea.conf\n...\n```\n\n## Examples\nIgnore built-in whitelist and report all files\n```bash\n$ ./lostfiles.py --strict\n/usr/share/info/dir\n/usr/share/applications/mimeinfo.cache\n/usr/share/binutils-data/x86_64-pc-linux-gnu/2.39/info/dir\n/usr/share/mime/XMLnamespaces\n/usr/share/mime/aliases\n...\n```\n\nOverride default paths\n```bash\n$ ./lostfiles.py -p /lib -p /lib32 -p /lib64\n```\n\n## Dependencies\n* python \u003e= 3.8\n* portage \u003e= 3, \u003c 4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarq%2Fportage-lostfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcarq%2Fportage-lostfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcarq%2Fportage-lostfiles/lists"}