You are not logged in.

#1 2020-09-14 09:39:59

si67
Member
Registered: 2020-09-06
Posts: 26

Package names or command helpers for pacman [SOLVED]

Hello

Its been 2-3 weeks since i shifted to arch from Ubuntu and I love it

One doubt tho
sometimes i make scripts and try to come up names that are not already taken

in ubuntu I had to type a command and it shows exactly what package it is from , if the package isn't installed


but in arch it just says command not found

Is there any package from AUR that does this?

Last edited by si67 (2020-09-14 11:05:56)

Offline

#2 2020-09-14 11:00:26

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Package names or command helpers for pacman [SOLVED]


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-09-14 11:01:23

solskog
Member
Registered: 2020-09-05
Posts: 407

Re: Package names or command helpers for pacman [SOLVED]

Sync and download database
# pacman -Fy
Search pattern for a command
# pacman -F gimp

Offline

#4 2020-09-14 11:04:13

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Package names or command helpers for pacman [SOLVED]

solskog, this is NOT the same thing at all. The OP specifically wants a hook for bash's command_not_found_handle.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2020-09-14 11:05:37

si67
Member
Registered: 2020-09-06
Posts: 26

Re: Package names or command helpers for pacman [SOLVED]

Thanks for the answers

Offline

#6 2020-09-14 13:05:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: Package names or command helpers for pacman [SOLVED]

eschwartz wrote:

solskog, this is NOT the same thing at all. The OP specifically wants a hook for bash's command_not_found_handle.

Yes, but it is a bit of an XY question.  The OP was just (ab)using ubuntus command not found handler as a means of checking whether a given filename existed in the repos.  The pacman -F approach is a direct solution to the goal rather than instructions on how to acheive the Y of the XY.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB