From d4f10aed4e8e32f48628f0682c0a2df12b809474 Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 16 Dec 2024 21:49:51 -0500 Subject: [PATCH 01/12] feat: pacman query --- pages/linux/pacman-q.md | 7 +++++++ pages/linux/pacman-query.md | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 pages/linux/pacman-q.md diff --git a/pages/linux/pacman-q.md b/pages/linux/pacman-q.md new file mode 100644 index 00000000000000..840965ab48b53a --- /dev/null +++ b/pages/linux/pacman-q.md @@ -0,0 +1,7 @@ +# pacman -Q + +> This command is an alias of `pacman --query`. + +- View documentation for the original command: + +`tldr pacman query` diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index c62049f7ee0efd..0a34c925c227f5 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -6,32 +6,36 @@ - List installed packages and versions: -`pacman --query` +`pacman -Q` - List only packages and versions that were explicitly installed: -`pacman --query --explicit` +`pacman -Qe` - Find which package owns a file: -`pacman --query --owns {{filename}}` +`pacman -Qo {{filename}}` - Display information about an installed package: -`pacman --query --info {{package}}` +`pacman -Qi {{package}}` - List files owned by a package: -`pacman --query --list {{package}}` +`pacman -Ql {{package}}` - List orphan packages (installed as dependencies but not required by any package): -`pacman --query --unrequired --deps --quiet` +`pacman -Qdtq` - List installed packages not found in the repositories: -`pacman --query --foreign` +`pacman -Qm` - List outdated packages: -`pacman --query --upgrades` +`pacman -Qu` + +- Display help: + +`pacman -Q --help` From 35f6cfb85499b2187de0ca2ce78af9ea7352a376 Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 16 Dec 2024 21:56:01 -0500 Subject: [PATCH 02/12] chore: help goes over 8 --- pages/linux/pacman-query.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 0a34c925c227f5..b812ded35c36e5 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -36,6 +36,3 @@ `pacman -Qu` -- Display help: - -`pacman -Q --help` From 24eaf75d7296b2675c449d018e16870888b5a556 Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 16 Dec 2024 21:58:29 -0500 Subject: [PATCH 03/12] fix: remove ws --- pages/linux/pacman-query.md | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index b812ded35c36e5..7ee9fa69a5817f 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -35,4 +35,3 @@ - List outdated packages: `pacman -Qu` - From f132ca2ac8108ad58cd2f76cf5771052ab42521b Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 18 Dec 2024 10:37:01 -0500 Subject: [PATCH 04/12] feat: command flag mnemonics --- pages/linux/pacman-query.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 7ee9fa69a5817f..66902784291793 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -8,23 +8,23 @@ `pacman -Q` -- List only packages and versions that were explicitly installed: +- List only packages and versions that were [e]xplicitly installed: `pacman -Qe` -- Find which package owns a file: +- Find which package [o]wns a file: `pacman -Qo {{filename}}` -- Display information about an installed package: +- Display information about an [i]nstalled package: `pacman -Qi {{package}}` -- List files owned by a package: +- [L]ist files owned by a package: `pacman -Ql {{package}}` -- List orphan packages (installed as dependencies but not required by any package): +- List orphan packages (installed as [d]ependencies but unrequired by any package without errors displayed): `pacman -Qdtq` @@ -32,6 +32,6 @@ `pacman -Qm` -- List outdated packages: +- List packages that can be [u]pgraded: `pacman -Qu` From 5044b007523da582d6999a6414b9b3fa795369da Mon Sep 17 00:00:00 2001 From: You Gao Date: Wed, 18 Dec 2024 10:38:54 -0500 Subject: [PATCH 05/12] Update pages/linux/pacman-query.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 66902784291793..49273ca8bd9a2e 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -4,7 +4,7 @@ > See also: `pacman`. > More information: . -- List installed packages and versions: +- [Q]uery the local package database and list installed packages and versions: `pacman -Q` From 8d58475f0ada9c4fe9242573b772f239b9233171 Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 18 Dec 2024 10:51:26 -0500 Subject: [PATCH 06/12] feat: update wording/add mnemonics --- pages/linux/pacman-query.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 49273ca8bd9a2e..719211a443b580 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -24,11 +24,11 @@ `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired by any package without errors displayed): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package without errors displayed ([q]): `pacman -Qdtq` -- List installed packages not found in the repositories: +- List installed packages foreign ([m]) to the repository database: `pacman -Qm` From efd856920b6e9b9449ae5689c56861df3c064e58 Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 18 Dec 2024 11:26:07 -0500 Subject: [PATCH 07/12] fix: [L] and ([q]) --- pages/linux/pacman-query.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 719211a443b580..cce22171949bda 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -20,11 +20,11 @@ `pacman -Qi {{package}}` -- [L]ist files owned by a package: +- Diplay the [l]ist of files owned by a specific package: `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package without errors displayed ([q]): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package in quiet mode ([q]) (no errors displayed)): `pacman -Qdtq` From 2bda98f777a6a0fc68f9b423488cb26324b63a3b Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 18 Dec 2024 11:31:02 -0500 Subject: [PATCH 08/12] fix: ([q]) location --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index cce22171949bda..71db71ecdba954 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -24,7 +24,7 @@ `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package in quiet mode ([q]) (no errors displayed)): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package in quiet ([q]) mode (no errors displayed)): `pacman -Qdtq` From 49b75c537c6e242e6b0f74ab2e441371f2985e7d Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 18 Dec 2024 11:36:17 -0500 Subject: [PATCH 09/12] fix: grammar --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 71db71ecdba954..3974ed55096261 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -20,7 +20,7 @@ `pacman -Qi {{package}}` -- Diplay the [l]ist of files owned by a specific package: +- Display the [l]ist of files owned by a specific package: `pacman -Ql {{package}}` From ebc8286a6e18cf1046eb2b921c0f7eb5c43dc8d4 Mon Sep 17 00:00:00 2001 From: You Gao Date: Wed, 18 Dec 2024 11:45:10 -0500 Subject: [PATCH 10/12] Update pages/linux/pacman-query.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 3974ed55096261..bc6164d04cd39e 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -24,7 +24,7 @@ `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package in quiet ([q]) mode (no errors displayed)): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in quiet ([q]) mode (no errors displayed)): `pacman -Qdtq` From b6f2d84ea144e5b645c4ad12038e6fe965517ec1 Mon Sep 17 00:00:00 2001 From: You Gao Date: Wed, 18 Dec 2024 13:01:10 -0500 Subject: [PATCH 11/12] feat: [q] in quiet --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index bc6164d04cd39e..70cc22c7421378 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -24,7 +24,7 @@ `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in quiet ([q]) mode (no errors displayed)): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in [q]uiet mode (no error messages displayed)): `pacman -Qdtq` From 2fb7fbb0f4797fb05299fb1d65dca1a24afb1737 Mon Sep 17 00:00:00 2001 From: You Gao Date: Wed, 18 Dec 2024 16:49:42 -0500 Subject: [PATCH 12/12] Update pages/linux/pacman-query.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/pacman-query.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/pacman-query.md b/pages/linux/pacman-query.md index 70cc22c7421378..cf9e1d7053e73a 100644 --- a/pages/linux/pacman-query.md +++ b/pages/linux/pacman-query.md @@ -24,7 +24,7 @@ `pacman -Ql {{package}}` -- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in [q]uiet mode (no error messages displayed)): +- List orphan packages (installed as [d]ependencies but unrequired ([t]) by any package and print in [q]uiet mode (only package name is displayed)): `pacman -Qdtq`