split yay and pacman
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "basic-install"
|
||||
title: "Install Arch"
|
||||
tags: [ "arch" ]
|
||||
requires: [ "partitions", "time" ]
|
||||
---
|
||||
|
11
distros/arch/install_yay.md
Normal file
11
distros/arch/install_yay.md
Normal 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
|
||||
```
|
@@ -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
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: "pacman"
|
||||
tags: [ "distros" ]
|
||||
requirements: [ "Install Arch" ]
|
||||
---
|
||||
|
||||
Packages are kept in /var/cache/pacman/pkg.
|
||||
|
22
distros/arch/yay_maintenance.md
Normal file
22
distros/arch/yay_maintenance.md
Normal 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
|
||||
```
|
||||
|
Reference in New Issue
Block a user