-
Notifications
You must be signed in to change notification settings - Fork 7
[Question] Best way to downgrade a package back to stock root #34
Description
Sometimes you may find yourself testing a newer version of a package already included in the read only root, but then wish to return to the default.
If you pacman -R the package, it will be gone from the overlay but also from the package database. This means while the files are still present in root, pacman no longer knows they are installed.
How to best remedy this? The only obvious way I see is to use --dbonly to register the installed stock package in the db. But then I need to make sure that the repos match the stock packages, i.e. edit pacman.conf to match the update channel I'm on.
Actually, does the overlay remember that the files were removed? Then I also need to somehow tell it to restore the files from the lower dir. I have no idea how to do that.
The stock pacman.conf doesn't seem to match the update channel. According to SteamOS settings I'm on "testing" but the repos are configured to be -rel (I deleted pacman.conf from the /etc overlay upper dir to get the stock file). I'm actually not sure which is which. The repo server has -rel, -main, -testing, -debug and -staging, but the update channels are called stable, beta and preview. So I'm kinda stuck.