A recovery program to reset Arch Linux package file permissions
# Reset all files and directories owned by installed packages
pacreset
# Only reset files and directories under the specified file/directory
pacreset /path/to/file/or/directory
If you cannot boot Arch Linux because of file permissions, you need to make a bootable USB drive.
Then, you need to copy the program to the root partition of Arch Linux on your computer.
Mount the root partition and then arch-chroot
to that partition.
Finally, run the pacreset
command to reset all files and directories owned by all packages.
You can download the program from the "Packages" page on GitHub. However, if you want to build the program yourself, first you need to install some dependencies using the following command:
pacman -S cmake pkgconf ninja gcc
Then, you just need to run the build script:
make release
The program is located at build/pacreset
It takes a lot of time to create and maintain a project. If you think it helped you, could you buy me a cup of coffee? 😉
You can use any of the following methods to donate:
Click here to donate |
Wechat Pay |
Alipay |
---|