EFanZh’s Blog

Some useful commands

pacman

Normalize package dependencies

# For Bash.

comm -23 <(pacman -Qeq) <(pacman -Qeqtt) | xargs -r sudo pacman -D --asdeps
# For Fish.

comm -23 (pacman -Qeq | psub) (pacman -Qeqtt | psub) | xargs -r sudo pacman -D --asdeps

Others

Bring swap memories back online

# For sh.

sudo swapoff -a && sudo swapon -a
# For Fish.

sudo swapoff -a; and sudo swapon -a