diff options
| author | srdusr <[email protected]> | 2023-07-06 21:24:18 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-07-06 21:24:18 +0200 |
| commit | 5ca32e2594f8f3fa4b31ea557f79f9c429d53f64 (patch) | |
| tree | e15706c43c02e8042c7278664f2c32ff79a89f52 | |
| parent | c186eb797542b4486d63badd0f1dee6e4490a454 (diff) | |
| download | notes-5ca32e2594f8f3fa4b31ea557f79f9c429d53f64.tar.gz notes-5ca32e2594f8f3fa4b31ea557f79f9c429d53f64.zip | |
Add info on cleaning package manager's cache (apt/pacman)
| -rw-r--r-- | linux/linux-troubleshoot.md | 27 |
1 files changed, 21 insertions, 6 deletions
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=:<n> <name of program>` +```bash +$ DISPLAY=:<n> <name of program> +``` 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 ``` - - - + |