[pacman-dev] [PATCH 1/3] alpm: add ALPM_TRANS_FLAG_NOKEEP
Allan McRae
allan at archlinux.org
Sat Jun 25 01:00:27 UTC 2022
On 21/9/21 05:35, morganamilo wrote:
> this flag prevents backup files from being kept on package installation.
> This is useful for resetting a package's config files back to their
> original state.
>
> Implements FS#59908 although with it's own flag name instead of reusing
> nosave. This allows nokeep to optionally create a pacnew that you can
> then choose to disable by also setting nosave.
>
> ---
>
> I actually very dislike NOKEEP but it was the best I could come up with
>
> I would have prefered overwrite or nosave but they are taken. Better
> names are welcome.
Do we really need a flag for this.
rm <backup file>
pacman -S <package>
or even
pacman -Sw package
tar xf <pkg> <file>
Allan
More information about the pacman-dev
mailing list