Skip to content

A recovery program to reset Arch Linux package file permissions (一个重置Arch Linux软件包文件和文件夹的恢复程序)

License

Notifications You must be signed in to change notification settings

ttc0419/pacreset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacreset

A recovery program to reset Arch Linux package file permissions

Usage

# 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

Reset permissions using bootable USB

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.

Build

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

Sponsor

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:

PayPal
Click here to donate
Wechat Pay
Wechat Pay
Alipay Alipay

About

A recovery program to reset Arch Linux package file permissions (一个重置Arch Linux软件包文件和文件夹的恢复程序)

Topics

Resources

License

Stars

Watchers

Forks