initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
12
joplin notion extension/linux/endeavour os/Basics.md
Normal file
12
joplin notion extension/linux/endeavour os/Basics.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Basics
|
||||
|
||||
- In arch based never do `pacman -Sy`. always do `pacman -S` or `pacman -Sy` bcz if repos are partially updated then it will break things
|
||||
- list all packages with sizes sorted with size too
|
||||
`pacman -Qi | awk '/^Name/{name=$3}/^Installed Size/{size=$4; unit=$5; if(unit=="MiB") size*=1024; print name, size, unit}' | sort -k2,2nr | awk '{size=$2; unit=$3; if(size>=1048576) {printf "%-30s %.2f GiB\n", $1, size/1048576} else if(size>=1024) {printf "%-30s %.2f MiB\n", $1, size/1024} else {printf "%-30s %d KiB\n", $1, size}}'
|
||||
`
|
||||
mentioning packages with size with no sorting
|
||||
`pacman -Qi | awk '/^Name/{name=$3}/^Installed Size/{size=$4 " " $5; print name, size}'`
|
||||
- list orphan package
|
||||
`pacman -Qdt`
|
||||
to remove them run
|
||||
`pacman -Rns $(pacman -Qdtq)`
|
||||
Loading…
Reference in a new issue