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

[ Feature request] : purge uninstalled .xbps files from /var/cache/xbps directory #140

Open
LinArcX opened this issue Jul 28, 2019 · 2 comments

Comments

@LinArcX
Copy link

LinArcX commented Jul 28, 2019

Hi. and thank you for your great effort. I have a problem with xbps and it's that:
imagin you decide to install a package and after a while, you decide to delete it with:
sudo xbps-install -S foo.
Actually it doesn't delete .xbps files from: /var/cache/xbps and after some times if you install-uninstall some packages, your /var/cache/xbps directory will occupied with .xbps files that no longer related to any installed package on your machine.
I know we can go to that directory and start deleting packages one by one. it's easy for packages with low dependencies but imagine you install plasma-desktop or gnome with more than 150 dependencies.
How you can find them? absolutely it's time consuming and an error-prone process.
So i think there should be some script to do it for us automatically. I also said this problem here:
void-linux/xbps#156 (comment)
And @pullmoll offer me a script in last part. I tried it and it works. But i think it can be improved and then merged to your repo.

@leahneukirchen
Copy link
Owner

Doesn't xbps-remove -O do that?

@LinArcX
Copy link
Author

LinArcX commented Jul 28, 2019

@leahneukirchen No.

This is not a bug. The option -O removes orphaned packages from the cache while the xfce4*.xbps and its *.sig files in your cache are not orphans

void-linux/xbps#156 (comment)

Edit: I start to manipulate that script and add some stuffs to it. Can i send you as PR?

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

No branches or pull requests

2 participants