split yay and pacman

This commit is contained in:
2025-10-14 15:34:22 +02:00
parent 594107c252
commit 1dbc97209e
5 changed files with 38 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
---
title: "basic-install"
title: "Install Arch"
tags: [ "arch" ]
requires: [ "partitions", "time" ]
---

View File

@@ -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
```

View File

@@ -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

View File

@@ -1,6 +1,7 @@
---
title: "pacman"
tags: [ "distros" ]
requirements: [ "Install Arch" ]
---
Packages are kept in /var/cache/pacman/pkg.

View File

@@ -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
```