summaryrefslogtreecommitdiff
path: root/vimwiki/Querying specific packages.md
diff options
context:
space:
mode:
Diffstat (limited to 'vimwiki/Querying specific packages.md')
-rw-r--r--vimwiki/Querying specific packages.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/vimwiki/Querying specific packages.md b/vimwiki/Querying specific packages.md
new file mode 100644
index 0000000..a262bdc
--- /dev/null
+++ b/vimwiki/Querying specific packages.md
@@ -0,0 +1,38 @@
+_QUERYING SPECIFIC PACKAGES_
+
+
+# Action Arch Debian/Ubuntu
+
+1. Show all or most information about a package: `pacman -[S|Q]i` `apt show / apt-cache policy`
+The tools' verbosity for the default command vary.
+But with options, the tools are on par with each
+other.
+
+2. Display local package information: `pacman -Qi` `dpkg -s / aptitude show`
+ Name, version, description, etc.
+
+3. Display remote package information: `pacman -Si` `apt-cache show / aptitude show`
+ Name, version, description, etc.
+
+4. Display files provided by local package: `pacman -Ql` `dpkg -L`
+
+5. Display files provided by a remote package: `pacman -Fl` `apt-file list $pattern`
+
+6. Query the package which provides FILE: `pacman -Qo` `dpkg -S / dlocate`
+
+7. List the files that the package holds: `pacman -Ql / pacman -Fl` `dpkg-query -L`
+Again, this functionality can be mimicked
+by other more complex commands.
+
+8. Displays packages which provide the given `pacman -Fo` `apt-file search`
+expression, a.k.a. reverse provides:
+Mainly a shortcut to search a specific field.
+Other tools might offer this functionality
+through the search command.
+
+9. Search all packages to find the one which holds `pacman -Fs` `apt-file search`
+the specified file:
+auto-apt is using this functionality.
+
+10. Show the changelog of a package: `pacman -Qc` `apt-get changelog`
+