void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
821 stars 124 forks source link

Add an option to xbps-pkgdb to automatically re-install packages with errors #295

Open ericonr opened 4 years ago

ericonr commented 4 years ago

xbps-pkgdb -a only lists packages with issues, requiring some smart shell scripting to get a list of all affected packages to try and reinstall. It should have a flag to do this automatically, like:

Ideally, have an option that will only list the affected packages, without specifying each individual error.

Duncaen commented 4 years ago

Reinstall is only useful for files and metadata check, for all other issues might just not work.

ericonr commented 4 years ago

Do you think it would still make sense to have reinstalling as an option for those cases?

Duncaen commented 4 years ago

I don't really think its worth it, maybe a different output format that just lists package names and maybe a way to specify which checks should be run seem like a nice addition which would make it easier to one line your way around with xbps-pkgdb and xbps-install.

ericonr commented 4 years ago

Fair enough. So something like: --checks=file,metadata and --list -l?

ericonr commented 4 years ago

Or --pkg-names instead of list.

camoz commented 2 years ago

Or --list-pkgs.