Ubuntu: which package a file belongs to?
Some of us dont know this command, so:
nme@werewolf ~ $ dpkg -S /usr/bin/ffmpeg
ffmpeg: /usr/bin/ffmpeg
nme@werewolf ~ $
or
nme@werewolf ~ $ dpkg -S `which gcc`
gcc: /usr/bin/gcc
nme@werewolf ~ $
or
nme@werewolf ~ $ dpkg -S *bash
xz-utils: /usr/share/doc/xz-utils/extra/7z2lzma/7z2lzma.bash
bash: /usr/share/menu/bash
util-linux: /usr/share/doc/util-linux/examples/getopt-test.bash
util-linux: /usr/share/doc/util-linux/examples/getopt-parse.bash
bash: /bin/bash
apparmor: /etc/apparmor.d/abstractions/bash
bash: /bin/rbash
bash-completion, bash: /usr/share/doc/bash
global: /usr/bin/globash
nme@werewolf ~ $
You know smarter way? Add Your comment!
