From 1dbc97209e6805d5255621c36c48cc5d1cd0bbda Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 14 Oct 2025 15:34:22 +0200 Subject: [PATCH] split yay and pacman --- distros/arch/basic-install.md | 2 +- distros/arch/install_yay.md | 11 +++++++++++ distros/arch/maintenance.md | 17 +++-------------- distros/arch/pacman.md | 1 + distros/arch/yay_maintenance.md | 22 ++++++++++++++++++++++ 5 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 distros/arch/install_yay.md create mode 100644 distros/arch/yay_maintenance.md diff --git a/distros/arch/basic-install.md b/distros/arch/basic-install.md index 1bcb6a1..c6f1edf 100644 --- a/distros/arch/basic-install.md +++ b/distros/arch/basic-install.md @@ -1,5 +1,5 @@ --- -title: "basic-install" +title: "Install Arch" tags: [ "arch" ] requires: [ "partitions", "time" ] --- diff --git a/distros/arch/install_yay.md b/distros/arch/install_yay.md new file mode 100644 index 0000000..9db99e4 --- /dev/null +++ b/distros/arch/install_yay.md @@ -0,0 +1,11 @@ +--- +title: "Install yay" +tags: [ "distros", "arch" ] +requirements: [ "pacman" ] +--- + +```sh +pacman --sync --noconfirm --needed base-devel gcc git +git clone https://aur.archlinux.org/yay.git /tmp/yay +makepkg -C !$ -si +``` diff --git a/distros/arch/maintenance.md b/distros/arch/maintenance.md index 1dfa9f8..b466c4b 100644 --- a/distros/arch/maintenance.md +++ b/distros/arch/maintenance.md @@ -1,6 +1,7 @@ --- -title: "Maintenance" +title: "Arch Maintenance" tags: [ "arch" ] +requirements: [ "pacman" ] --- # Package Cache @@ -12,15 +13,6 @@ ls /var/cache/pacman/pkg/ | wc -l sudo pacman -Sc ls /var/cache/pacman/pkg/ | wc -l ``` -And the same for `yay` (with `-Yc` to remove old dependencies): - -```sh -ls ~/.cache/yay/ | wc -l -yay -Sc -yay -Yc -ls ~/.cache/yay/ | wc -l -``` - # New Configs If you chance a configuration file, such as `/etc/environment`, and `pacman` wants to update the file, it will place `/etc/environment.pacnew`. @@ -41,10 +33,7 @@ sudo -e /etc/pacman.d/mirrorlist sudo rm /etc/pacman.d/mirrorlist.pacnew ``` -Or, - -- use a tool like `pacdiff` to view the changes next to each other, and select them with `vim`. - +Or use a tool like `pacdiff` to view the changes next to each other, and select them with `vim`. ```sh sudo pacman -S pacman-contrib diff --git a/distros/arch/pacman.md b/distros/arch/pacman.md index 78224d3..37f0952 100644 --- a/distros/arch/pacman.md +++ b/distros/arch/pacman.md @@ -1,6 +1,7 @@ --- title: "pacman" tags: [ "distros" ] +requirements: [ "Install Arch" ] --- Packages are kept in /var/cache/pacman/pkg. diff --git a/distros/arch/yay_maintenance.md b/distros/arch/yay_maintenance.md new file mode 100644 index 0000000..a1ff095 --- /dev/null +++ b/distros/arch/yay_maintenance.md @@ -0,0 +1,22 @@ +--- +title: "Arch Maintenance with yay" +tags: [ "arch" ] +requirements: [ "Arch Maintenance" ] +--- + +# Package Cache + +Just like `pacman` + +```sh +ls ~/.cache/yay/ | wc -l +yay -Sc +``` + +Use `-Yc` to remove old dependencies: + +```sh +yay -Yc +ls ~/.cache/yay/ | wc -l +``` +