2

I'm missing the which command in my Arch Linux container.

In my host distribution (Ubuntu) it sits at /usr/bin/which, I've done a pacman -Ss which followed by pacman -S core/gnutls but it's still not available. How do I get it installed in my Arch container?

pacman -Qo /usr/bin/which only gives me error: No package owns /usr/bin/which

stdcerr
  • 2,037
  • 12
  • 42
  • 65
  • 3
    Try `pacman -Fs which`. – ajgringo619 Aug 30 '19 at 03:18
  • 1
    BAM!, That was it, I did a `# pacman -Fy which ` followed by `pacman -Fs which` and then `pacman -S core/which`, cool! Thank you! You can move this to an answer and I'll accept! – stdcerr Aug 30 '19 at 03:25
  • Related to https://unix.stackexchange.com/questions/426296/archlinux-how-to-find-a-file-for-install-with-pacman – kelvin Sep 16 '19 at 18:09

1 Answers1

4

pacman -Fy $filename is used to find the package which provides $filename.

pyrmont
  • 107
  • 4
ajgringo619
  • 3,113
  • 1
  • 11
  • 37