Skip to content

Instantly share code, notes, and snippets.

@jjb
Last active June 13, 2023 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjb/4d5a1214ac70e32ba77db2477035b95e to your computer and use it in GitHub Desktop.
Save jjb/4d5a1214ac70e32ba77db2477035b95e to your computer and use it in GitHub Desktop.
The equivalent of redhat/centos yum whatprovides for debian/ubuntu
apt update
apt install -y apt-file
apt-file update
apt-file find psql
apt-file find bin/psql
apt-file find postgresql.conf
apt-file find --fixed-string convert # equivalent of .*convert.*, way too much
apt-file find --fixed-string /usr/bin/convert # need to know exact path
apt-file find --regexp '.*bin/convert$' # bingo. would also pick up .../sbin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment