pacman info
(Provide) owns
& list
executable files/commands
#3593
-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 31 replies
-
This documentation may help https://wiki.archlinux.org/title/PKGBUILD#provides |
Beta Was this translation helpful? Give feedback.
-
@yashpalgoyal1304 wrote 2 hours ago:
I still don't understand your primary aim. Do you wan to extract all the executable names (and skip other thing like DLLs)? In the OP you use this following syntax:
The leading
Now alongside
Now name of the extensionless binary can start by any char except for the
And there should be at least one such char before the end of the string (the extensionless name), which in RegExps is denoted by the
And finally we filter out only the wanted extension that we count as executable, I suppose the that's
Now we might make matching the file extension optional by embracing it using braces,
And if you would like to include some other file extension, eg.
Is that something like what you wanted? |
Beta Was this translation helpful? Give feedback.
This documentation may help https://wiki.archlinux.org/title/PKGBUILD#provides