Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if there are old or uninstalled cached packages in pacman's cache and offers to remove them if there are #71

Merged
merged 6 commits into from
Dec 3, 2023

Conversation

Antiz96
Copy link
Owner

@Antiz96 Antiz96 commented Dec 3, 2023

As suggested in #70, this PR aims to add a function to the script to check for old or uninstalled packages in pacman's cache and offers to remove them if there are.

The check and removal are based on paccache (from the pacman-contrib package). The default behavior is to keep the last 3 cached versions of installed packages and remove every cached versions of uninstalled packages.

Closes #70

…he and offers to remove them if there are

As suggested in #70, this commit aims to add function to the script to check for old or uninstalled packages in pacman's cache and offers to remove them if there are.

The check and removal are based on paccache (from the [pacman-contrib package](https://archlinux.org/packages/extra/x86_64/pacman-contrib/)).
The default behavior is to keep the last 3 cached versions of installed packages and remove every cached versions of uninstalled packages.

Closes #70
Copy link
Owner Author

@Antiz96 Antiz96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Antiz96 Antiz96 merged commit 18448e1 into main Dec 3, 2023
1 check passed
@Antiz96 Antiz96 deleted the paccache branch December 3, 2023 19:32
@Antiz96 Antiz96 mentioned this pull request Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear pacman cache
1 participant