From 1461dcb52d8d43d7c6c067019a46ee8bf4c99f8b Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Fri, 15 Jan 2016 16:12:57 +0100 Subject: [PATCH 1/4] Add page for `rpm` - RPM Package Manager --- pages/linux/rpm.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pages/linux/rpm.md diff --git a/pages/linux/rpm.md b/pages/linux/rpm.md new file mode 100644 index 0000000000..3add0821c2 --- /dev/null +++ b/pages/linux/rpm.md @@ -0,0 +1,48 @@ +# rpm + +> RPM Package Manager + +- Show version of httpd package: + +`rpm -q {{httpd}}` + +- List versions of all matching packages: + +`rpm -qa '{{mariadb*}}'` + +- Identify owner of a file and show version of the package: + +`rpm -qf {{/etc/postfix/main.cf}}` + +- List package-owned files: + +`rpm -ql {{kernel}}` + +- List configuration, then only documentation files of httpd: + +`rpm -qlc {{httpd}}` +`rpm -qld {{httpd}}` + +- show contents of an RPM file: + +`rpm -qlp {{some.rpm}}` + +- Show scriptlets from an RPM file: + +`rpm -qp --scripts {{some.rpm}}` + +- Show capabilities provided by an RPM file + +`rpm -qp --provides {{some.rpm}}` + +- Show capabilities needed by an RPM file + +`rpm -qp --requires {{some.rpm}}` + +- Show changed, missing and/or incorrectly installed files of matching packages: + +`rpm -Va '{{php-*}}'`A + +- Show metadata about a package's files "intended" properties: + +`rpm --dump -q {{php-pear}}` From 4192235e41702b34f36d1b51b601a6458746b1c5 Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Sun, 17 Jan 2016 21:42:24 +0100 Subject: [PATCH 2/4] Fix Vim typo --- pages/linux/rpm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/rpm.md b/pages/linux/rpm.md index 3add0821c2..97d2c01606 100644 --- a/pages/linux/rpm.md +++ b/pages/linux/rpm.md @@ -41,7 +41,7 @@ - Show changed, missing and/or incorrectly installed files of matching packages: -`rpm -Va '{{php-*}}'`A +`rpm -Va '{{php-*}}'` - Show metadata about a package's files "intended" properties: From 17fb4fc1bc57d98eabf0dc386c8132977986618b Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Sun, 17 Jan 2016 21:45:45 +0100 Subject: [PATCH 3/4] Fix TLDR lint issues --- pages/linux/rpm.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/rpm.md b/pages/linux/rpm.md index 97d2c01606..bf68dcce0c 100644 --- a/pages/linux/rpm.md +++ b/pages/linux/rpm.md @@ -1,6 +1,6 @@ # rpm -> RPM Package Manager +> RPM Package Manager. - Show version of httpd package: @@ -23,7 +23,7 @@ `rpm -qlc {{httpd}}` `rpm -qld {{httpd}}` -- show contents of an RPM file: +- Show contents of an RPM file: `rpm -qlp {{some.rpm}}` @@ -31,11 +31,11 @@ `rpm -qp --scripts {{some.rpm}}` -- Show capabilities provided by an RPM file +- Show capabilities provided by an RPM file: `rpm -qp --provides {{some.rpm}}` -- Show capabilities needed by an RPM file +- Show capabilities needed by an RPM file: `rpm -qp --requires {{some.rpm}}` From 442826f609039d0534db55c9dacf8cd3b3152228 Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Thu, 21 Jan 2016 20:16:05 +0100 Subject: [PATCH 4/4] Work towards 25/6 rule Aim for 25 lines / 6 example limit. This also removes the problem of 2 commands per example by removing the relevant example altogether. --- pages/linux/rpm.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pages/linux/rpm.md b/pages/linux/rpm.md index bf68dcce0c..ea62afdc17 100644 --- a/pages/linux/rpm.md +++ b/pages/linux/rpm.md @@ -18,31 +18,10 @@ `rpm -ql {{kernel}}` -- List configuration, then only documentation files of httpd: - -`rpm -qlc {{httpd}}` -`rpm -qld {{httpd}}` - -- Show contents of an RPM file: - -`rpm -qlp {{some.rpm}}` - - Show scriptlets from an RPM file: `rpm -qp --scripts {{some.rpm}}` -- Show capabilities provided by an RPM file: - -`rpm -qp --provides {{some.rpm}}` - -- Show capabilities needed by an RPM file: - -`rpm -qp --requires {{some.rpm}}` - - Show changed, missing and/or incorrectly installed files of matching packages: `rpm -Va '{{php-*}}'` - -- Show metadata about a package's files "intended" properties: - -`rpm --dump -q {{php-pear}}`