diff options
| author | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
|---|---|---|
| committer | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-08 18:10:49 +0100 |
| commit | 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch) | |
| tree | 2116c49a845dfc0945778f2aa3e2118d72be428b /vimwiki/Querying specific packages.md | |
| parent | 8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff) | |
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to 'vimwiki/Querying specific packages.md')
| -rw-r--r-- | vimwiki/Querying specific packages.md | 38 |
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` + |
