Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: artik on 01 January 2022, 14:22:41

Title: [SOLVED] handbrake installs without error but "command not found"
Post by: artik on 01 January 2022, 14:22:41
I have installed handbrake. Installation was went fine and without any error. However, when I type "handbrake" I get the following,

Code: [Select]
~~> handbrake
zsh: command not found: handbrake

I have searched in '/usr/bin/, /bin, /usr/local/bin' but didn't find the command and also "which" yielded the following:

Code: [Select]
~~> which handbrake
handbrake not found

Could someone shed some light on how to troubleshoot and fix this issue.
My installation trace is

Code: [Select]
~~> sudo pacman -Sy handbrake
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 universe is up to date
 extra is up to date
 community is up to date
resolving dependencies...
looking for conflicting packages...

Packages (2) numactl-2.0.14-1  handbrake-1.4.2-2

Total Installed Size:  54.67 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring                                                  [#############################################] 100%
(2/2) checking package integrity                                                [#############################################] 100%
(2/2) loading package files                                                     [#############################################] 100%
(2/2) checking for file conflicts                                               [#############################################] 100%
(2/2) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/2) installing numactl                                                        [#############################################] 100%
(2/2) installing handbrake                                                      [#############################################] 100%
Optional dependencies for handbrake
    gst-plugins-good: for video previews
    gst-libav: for video previews
    intel-media-sdk: Intel QuickSync support [installed]
    libdvdcss: for decoding encrypted DVDs [installed]
:: Running post-transaction hooks...
(1/2) Updating icon theme caches...
(2/2) Updating the desktop file MIME type cache...
Title: Re: handbrake installs without error but "command not found"
Post by: conky60 on 01 January 2022, 15:32:13
The executable is /usr/bin/ghb.  :)
HTH.

Best regards.
Title: Re: handbrake installs without error but "command not found"
Post by: SGOrava on 01 January 2022, 16:10:57
For the future, you can check the list of files installed by the package and find the binaries and other things which it provides.

To check the list of installed files from a package:
Code: [Select]
pacman -Ql <package>

In your case, you are looking for "bin" folder and "handbrake" package
Code: [Select]
pacman -Ql handbrake | grep bin

For not installed packages, you can use "pacman -F".
For more information check pacman entry at archwiki.
For example:
https://wiki.archlinux.org/title/Pacman#Querying_package_databases
https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file
Title: Re: handbrake installs without error but "command not found"
Post by: strajder on 01 January 2022, 16:51:03
For not installed packages, you can use "pacman -F".
Also pkgfile (https://wiki.archlinux.org/title/Pkgfile) can be used:
Code: [Select]
pkgfile -l some_package
Title: Re: handbrake installs without error but "command not found"
Post by: artik on 02 January 2022, 05:14:55
For the future, you can check the list of files installed by the package and find the binaries and other things which it provides.

To check the list of installed files from a package:
Code: [Select]
pacman -Ql <package>

In your case, you are looking for "bin" folder and "handbrake" package
Code: [Select]
pacman -Ql handbrake | grep bin

For not installed packages, you can use "pacman -F".
For more information check pacman entry at archwiki.
For example:
https://wiki.archlinux.org/title/Pacman#Querying_package_databases
https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file
Thanks mate :)