[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash: which: command not found? + (E: Unable to locate package which? ...)



On 2022-07-08 11:30, tomas@tuxteam.de wrote:

Not every binary is contained in a package called like it.
That's what "apt-file" is for (in the same named package):

    tomas@trotzki:~$ apt-file search bin/which
    debian-goodies: /usr/bin/which-pkg-broke
    debian-goodies: /usr/bin/which-pkg-broke-build
    debianutils: /usr/bin/which
    emboss: /usr/bin/whichdb
    whichman: /usr/bin/whichman

here on bookworm
mick@pumpkin:~$ ls -la /usr/bin |grep which
lrwxrwxrwx 1 root root 23 Jan 23 18:05 which -> /etc/alternatives/which
-rwxr-xr-x  1 root root         946 May  1 17:47 which.debianutils
mick@pumpkin:~$

what are these "alternatives" ?

mick


Reply to: