-
Notifications
You must be signed in to change notification settings - Fork 1
/
Clean_the_Filesystem.txt
55 lines (38 loc) · 1.62 KB
/
Clean_the_Filesystem.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2016-10-22T22:35:50+02:00
====== Clean the Filesystem ======
Created lørdag 22 oktober 2016
==== Cleaning the package cache ====
**# Pacman stores downloaded packages in** ///var/cache/pacman/pkg//
**# and it does not remove these versions automatic.**
**# To remove all cached versions of uninstalled packages**
$ paccache -ruk0
**#** **To remove remaining, installed, cache packages except for the most recent 2 versions**
$ paccache -rk 2
==== Removing orphans (unused packages) ====
**# To list packages no longer used**
$ pacman -Qdt
**#** **To remove orphans**
$ pacman -Rns $(pacman -Qtdq)
**# If the above returns** //error: no targets specified //**no orphans were found.**
==== Old configuration files ====
**# You can manually go through folders and clean up old configuration files from uninstalled packages. **
**# Some typical destinations may be;**
~/.config/
~/.cache/
~/.local/share/
==== Broken symlinks ====
**# Broken symlinks should be removed. **
**#** **To list all broken symlinks**
$ find . -type l -! -exec test -e {} \; -print
==== Review installed packages ====
**# Review a list of your installed packages - there might be some you don't use anymore^**
$ pacman -Qet **# List installed packages (not dependencies)**
==== Tips and Tricks ====
**# Some random Tips and Tricks**
== BeachBit ==
**# BleachBit can help you clean the system by removing unwanted files. **
**#** **Be careful though. I think this has caused issues for my **//Firefox//**, **
**#** **so I'd disable cleaning that when running.**
$ pacman -S bleachbit