You are not logged in.
What is a good way to automatically validate the integrate the installed packages and re-install any broken packages if necessary?
I know that I can do
pacman -Qkk
to validate the install packages.
Is there an existing way to automate the process of reinstalling broken packages as well?
Offline
-Qkk only lists differences between the repository version and the local version of a package; it doesn't "validate" the "integrity" of anything.
That's because a package for which files differ from the repository version is not necessarily "broken". Think of `/etc/passwd` or configuration files in /etc. Resetting them to the initial state might not always be desirable (and may sometimes even break things).
So generally it is strongly recommended to "fix" installed packages on a case-by-case basis instead of trying to automate it (unless you know exactly what you're doing).
Last edited by ayekat (2016-06-20 10:48:51)
Offline
I sense an XY problem. What are you really trying to do? What triggered these concerns? What is you you want to "validate" and what do you even mean by the word "validate"?
Have you done something that is likely to have broken package on your system? What did you do? Is your harddrive failing an corrupting files belonging to packages? What's the actual problem?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline