{"id":22366725,"url":"https://github.com/vaeth/logclean","last_synced_at":"2025-07-30T17:32:19.393Z","repository":{"id":2088442,"uuid":"3028327","full_name":"vaeth/logclean","owner":"vaeth","description":"Keep only compressed logs of installed packages (for Gentoo's portage system)","archived":false,"fork":false,"pushed_at":"2022-07-09T10:58:04.000Z","size":63,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-11T00:48:47.361Z","etag":null,"topics":["cleanup","compression","gentoo","logfile","portage"],"latest_commit_sha":null,"homepage":"http://www.mathematik.uni-wuerzburg.de/~vaeth/gentoo/index.html#logclean","language":"Perl","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/vaeth.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":"2011-12-21T17:13:57.000Z","updated_at":"2024-01-13T16:19:55.000Z","dependencies_parsed_at":"2022-08-27T10:11:43.791Z","dependency_job_id":null,"html_url":"https://github.com/vaeth/logclean","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Flogclean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Flogclean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Flogclean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Flogclean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaeth","download_url":"https://codeload.github.com/vaeth/logclean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228164524,"owners_count":17879085,"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":["cleanup","compression","gentoo","logfile","portage"],"created_at":"2024-12-04T18:15:24.433Z","updated_at":"2024-12-04T18:15:25.204Z","avatar_url":"https://github.com/vaeth.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logclean\n\n(C) Martin Väth (martin at mvath.de).\n\nThis project is under the BSD license 2.0 (“3-clause BSD license”).\nSPDX-License-Identifier: BSD-3-Clause\n\nWith Gentoo, it is a good idea to keep the install logs\nof all installed packages.\nIn case something goes wrong, a `grep` in these logs is sometimes very handy.\n\nHowever, if you set `PORTAGE_LOGDIR` in your `make.conf`, you soon have also\nthousands of logs of obsolete packages, because each `emerge`\n(successful or not) and also each `unmerge` (even fast `unmerge`)\nproduces a logfile.\n\nThe purpose of this project is to eliminate all logs except for the\nnewest installation logs for the actually installed packages;\nthe used ones are compressed using brotli, zstd, xz, lzma, bzip2, or gzip,\nand selected ones (determined by `/etc/logclean.conf`) are even shortened.\nMoreover, by default all color sequences are removed.\n\nThis script takes care in a similar way about your files in\n- `/var/log/elogs` (cf. the `ELOG` feature of __portage__)\n- `/var/log/notices` (cf. the unofficial __enotice__ script)\n\nThis script can also cleanup your temporary installation directories in\n- `/var/tmp/portage` (do not use this in a cron job if __portage__\n  might be running).\n\nFinally, this script can also shorten the main portage logfile\n- `/var/log/emerge.log`\n\nso that only the actually installed packages are logged.\n(You might want to keep these for usage with `qlop` or `genlop`).\n\nThis script is also offers option for a convenient usage from a cron job.\n\nIf you have installed `app-portage/eix`, this script will run slightly faster.\n\n### Installation\n\nFor installation, copy the content of `bin/` with executable permission in your\n`$PATH` (perhaps `/usr/bin/`) and the (possible edited) content of `etc/`\nto `/etc/`.\n\nTo obtain support for __zsh completion__, you can copy the content of `zsh/`\nto a directory of your zsh's `$fpath`\n(perhaps `/usr/share/zsh/site-functions/`).\n\nFor installation under Gentoo, there is an ebuild in the `mv` repository\n(available by `app-select/eselect-repository` or `app-portage/layman`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaeth%2Flogclean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaeth%2Flogclean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaeth%2Flogclean/lists"}