bash-tutorial/tutorial/removing_packages.org

32 lines
608 B
Org Mode

#+date: 2021-07-28
#+options: toc:nil num:nil
* Checking and cleaning packages and package cache in Parabola GNUlinux
** Removing unused packages by name
Let's say you want to delete the following packages:
* zim
* mpv
* smplayer
#+begin_example sh
pacman -Rs zim mpv smplayer
#+end_example
** List all installed packages
List and redirect the output to the file "pkglist.txt"
#+begin_example sh
pacman -Qqe > pkglist.txt
#+end_example
List all packages with size
#+begin_example sh
LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h
#+end_example