Split tutorial on pacman
This commit is contained in:
parent
c3ed9119e4
commit
e555f6e1f1
|
@ -37,7 +37,8 @@ opportunity to learn about computers, files, directories and programs.
|
|||
* [[./tutorial/dd_command_flash_usb.org][Using dd command to flash usb]]
|
||||
* [[./tutorial/compress_pdf.org][Compress a pdf file]]
|
||||
* [[./tutorial/luakit.org][Searching and editing configuration files]]
|
||||
* [[./tutorial/pacman.org][Use package manager in Parabola GNU-linux]]
|
||||
* [[./tutorial/pacman.org][Use package manager in Parabola GNU-linux: verify packages in cache]]
|
||||
* [[./tutorial/removing_packages.org][Removing packages in Parabola GNU-Linux]]
|
||||
|
||||
** Disk space utilization and manipulation
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ Open a terminal and run the code
|
|||
#+RESULTS:
|
||||
| 6000 |
|
||||
|
||||
Check space used by packages (cache)
|
||||
|
||||
#+begin_src bash
|
||||
du -sh /var/cache/pacman/pkg/
|
||||
#+end_src
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
#+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
|
Loading…
Reference in New Issue