Update README.md (#2458)

Update the README to prevent partial upgrades.

Partial upgrades are dangerous on Arch Linux.
Partial upgrades may occur when a `-y` operation is given without a corresponding `-u` operation.

Quote from the ArchWiki:
> Do not use:
> `pacman -Sy package`
> `pacman -Sy` followed by `pacman -S` package (Note the absence of `-S**u**` in the installation of the package.)
> `pacman -Syuw` (Note that `pacman -Syuw` does imply the same risks like pacman -Sy`, as it will update the pacman sync database without installing the newer packages.)

https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported
This commit is contained in:
Marcus B Spencer 2024-06-20 07:15:14 -05:00 committed by GitHub
parent e19700234f
commit 9ed9b0b4e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,10 +35,10 @@ If you are migrating from another AUR helper, you can simply install Yay with th
The initial installation of Yay can be done by cloning the PKGBUILD and The initial installation of Yay can be done by cloning the PKGBUILD and
building with makepkg: building with makepkg:
We start with updating the package lists and make sure we have the `base-devel` package group installed. We make sure we have the `base-devel` package group installed.
```sh ```sh
pacman -Sy --needed git base-devel pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
cd yay cd yay
makepkg -si makepkg -si