Local | Remote | Description |
---|---|---|
dpkg -S, --search | apt-file search | Search for packages that owns the file |
dpkg -L, --listfiles | apt-file list | List files owned by the package |
dpkg -s, --status | apt show | Show package information |
dpkg -l, --list | apt list | Search for package name |
Concept: 1 package owns some file(s)
Ubuntu Local | Ubuntu Remote | Arch Linux Local | Arch Linux Remote | Description |
---|---|---|---|---|
dpkg -S, --search | apt-file search | pacman -Qo | pacman -F | Search for packages that owns the file |
dpkg -L, --listfiles | apt-file list | pacman -Ql | pacman -Fl | List files owned by the package |
dpkg -s, --status | apt show | pacman -Qi | pacman -Si | Show package information |
dpkg -l, --list | apt list | pacman -Qs | pacman -Ss | Search for package name |
$ dpkg -L gzip | fgrep bin/
/bin/gunzip
/bin/gzexe
/bin/gzip
/bin/uncompress
/bin/zcat
/bin/zcmp
/bin/zdiff
/bin/zegrep
/bin/zfgrep
/bin/zforce
/bin/zgrep
/bin/zless
/bin/zmore
/bin/znew
$ dpkg -S bin/zcat
gzip: /bin/zcat
For more info.,
In man dpkg,
search for dpkg-query actions
In man apt,
search for apt-cache