Monday, February 26, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 575  / 11 Months ago, mon, april 17, 2023, 10:01:00

I looked around in coreutils, and did sudo apt-cache search which
I also looked at the manpages of which, I didn't find it.


I'd like to add an argument for listing dependencies to the executable, I think it would be useful.


More From » command-line

 Answers
2

At least on my Ubuntu 22.04, /usr/bin/which is provided by the debianutils package:


$ update-alternatives --list which
/usr/bin/which.debianutils
$
$ dpkg -S /usr/bin/which.debianutils
debianutils: /usr/bin/which.debianutils

It's a shell script - so no need to download the source:


$ file /usr/bin/which.debianutils 
/usr/bin/which.debianutils: POSIX shell script, ASCII text executable

[#3] Tuesday, April 18, 2023, 11 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
armis

Total Points: 38
Total Questions: 106
Total Answers: 118

Location: Mali
Member since Sat, Feb 12, 2022
2 Years ago
;