summaryrefslogtreecommitdiff
path: root/vimwiki/Querying specific packages.md
blob: a262bdcfe93971d3dbd623e70b3b67d1ecb5d695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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`