From 5ca32e2594f8f3fa4b31ea557f79f9c429d53f64 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 6 Jul 2023 21:24:18 +0200 Subject: Add info on cleaning package manager's cache (apt/pacman) --- linux/linux-troubleshoot.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'linux/linux-troubleshoot.md') diff --git a/linux/linux-troubleshoot.md b/linux/linux-troubleshoot.md index 5538cc3..21a764f 100644 --- a/linux/linux-troubleshoot.md +++ b/linux/linux-troubleshoot.md @@ -11,16 +11,31 @@ - Can show and modify kernal routing tables (+/- ARP cache entries) - - - #### Reload a program from tty if gui becomes unresponsive - `$ DISPLAY=: ` +```bash +$ DISPLAY=: +``` Example: ``` bash - `$ DISPLAY=:0 xterm &` - `$ DISPLAY=:0 sxhkd &` +$ DISPLAY=:0 xterm & +$ DISPLAY=:0 sxhkd & ``` - - - #### Fix pacman keyring errors -``` bash - `$ pacman-key --init && pacman-key --populate archlinuxarm` - `$rm /var/lib/pacman/db.lck` +```bash +$ pacman-key --init && pacman-key --populate archlinuxarm +$ rm /var/lib/pacman/db.lck +``` +- - - +#### Clean package manager's cache (apt/pacman) +apt: +```bash +$ sudo apt-get clean +$ sudo apt-get autoclean +``` +pacman: +```bash +$ paccache -r # requires pacman-contrib +$ sudo pacman -Scc ``` - - - + -- cgit v1.2.3