-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy patharch_main
39 lines (32 loc) · 1.84 KB
/
arch_main
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
Arch maintenance
Video: http://youtu.be/dOzoUMKIJIU
- sudo pacman -S ncdu # ncdu /var/
- rm -r .cache/* # on occasion rm -r .thumbnails/*
- sudo nano /etc/systemd/journald.conf # SystemMaxUse=50M
- localepurge # in the AUR
- browser-vacuum and/or profile-cleaner # in the AUR
- pkgbrowser # in the AUR
- mirror list # status & gen
- journalctl --disk-usage
- systemctl --failed
- fstrim / -v # SSD ONLY!
chromium # create a file in ~/.config called chromium-flags.conf # add --disk-cache-dir=/tmp/cache # save and exit
##Pacman##
- pacro
- paco
- pacc
##### pacman .bashrc aliases #####
# pacman aliases (if desired, adapt for your favourite AUR helper)
alias pac="sudo /usr/bin/pacman -S" # default action - install one or more packages
alias pacu="sudo /usr/bin/pacman -Syu" # '[u]pdate' - upgrade all packages to their newest version
alias pacr="sudo /usr/bin/pacman -Rns" # '[r]emove' - uninstall one or more packages
alias pacs="/usr/bin/pacman -Ss" # '[s]earch' - search for a package using one or more keywords
alias paci="/usr/bin/pacman -Si" # '[i]nfo' - show information about a package
alias paclo="/usr/bin/pacman -Qdt" # '[l]ist [o]rphans' - list all packages which are orphaned
alias pacc="sudo /usr/bin/pacman -Scc" # '[c]lean cache' - delete all not currently installed package files
alias paclf="/usr/bin/pacman -Ql" # '[l]ist [f]iles' - list all files installed by a given package
alias pacexpl="sudo /usr/bin/pacman -D --asexp" # 'mark as [expl]icit' - mark one or more packages as explicitly installed
alias pacimpl="sudo /usr/bin/pacman -D --asdep" # 'mark as [impl]icit' - mark one or more packages as non explicitly installed
# '[r]emove [o]rphans' - recursively remove ALL orphaned packages
alias pacro="/usr/bin/pacman -Qtdq > /dev/null && sudo /usr/bin/pacman -Rns \$(/usr/bin/pacman -Qtdq | sed -e ':a;N;$!ba;s/\n/ /g')"
##### EOF #####