Last active
June 13, 2023 17:41
-
-
Save jjb/4d5a1214ac70e32ba77db2477035b95e to your computer and use it in GitHub Desktop.
The equivalent of redhat/centos yum whatprovides for debian/ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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