From 0314a124093567a8a9c7184dacbd79904d0e8d17 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Mon, 7 Jun 2021 21:26:05 +0100 Subject: [PATCH] pacman: use long arguments and replace -Qo example (#6083) --- pages/linux/pacman.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/linux/pacman.md b/pages/linux/pacman.md index 8fb3d717a2..37902793a4 100644 --- a/pages/linux/pacman.md +++ b/pages/linux/pacman.md @@ -5,32 +5,32 @@ - Synchronize and update all packages: -`pacman -Syu` +`pacman --sync --refresh --sysupgrade` - Install a new package: -`pacman -S {{package_name}}` +`pacman --sync {{package_name}}` - Remove a package and its dependencies: -`pacman -Rs {{package_name}}` +`pacman --remove --recursive {{package_name}}` - Search the package database for a regular expression or keyword: -`pacman -Ss "{{search_pattern}}"` +`pacman --sync --search "{{search_pattern}}"` - List installed packages and versions: -`pacman -Q` +`pacman --query` - List only the explicitly installed packages and versions: -`pacman -Qe` +`pacman --query --explicit` -- Find which package owns a certain file: +- List orphan packages (installed as dependencies but not actually required by any package): -`pacman -Qo {{filename}}` +`pacman --query --unrequired --deps --quiet` -- Empty package cache to free up space: +- Empty the entire pacman cache: -`pacman -Scc` +`pacman --sync --clean --clean`