From 7297d3f2ce0d8e05790a1845bb3d8164f80907f6 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Wed, 5 Feb 2025 03:53:04 +0100 Subject: [PATCH] package manager: added pacman cache clearing --- wiki/linux/package_manager.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/wiki/linux/package_manager.md b/wiki/linux/package_manager.md index 7e7633c..f9ae863 100644 --- a/wiki/linux/package_manager.md +++ b/wiki/linux/package_manager.md @@ -15,10 +15,17 @@ yay is also a wrapper for pacman so yay can be used instead of pacman to install and update both AUR and main repository programs. It features the same syntax. -### Troubleshooting +### Usage -This section addresses various errors that can happen when using the package managers yay and -pacman. +This section addresses various uses of the pacman and yay package managers. + +#### Clean Cache + +The cache of all packages except the one installed can be deleted by running the following command. + +```sh +pacman -Sc +``` #### Update Mirrorlist @@ -30,6 +37,11 @@ This can be fixed by updating it with the following command: curl -o /etc/pacman.d/mirrorlist https://archlinux.org/mirrorlist/all/ ``` +### Troubleshooting + +This section addresses various errors that can happen when using the package managers yay and +pacman. + #### Error While Importing Keys Both `yay` and `pacman` use [GPG keys](/wiki/linux/gpg.md).