[SOLVED] pacman and yay search - returned result is overwhelming.. most of them don't even have the string that i tried to search.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
pacman and yay search - returned result is overwhelming.. most of them don't even have the string that i tried to search.
Did a yay package search for Tor browser, the result returned is overwhelmingly too many.. but many of the package does not even have tor in it, why is it like this ?
Is there way to do a package search when the result is too many ? i have faced several time, not knowing how to locate a package, because simply too many returned result, and most of them is not what i want to look for.
Code:
$ yay -Ssq tor
...
nano
mdadm
libsecret
libldap
libedit
bison
b43-fwcutter
-> error during AUR search: status 200: Too many package results.
-> Showing repo packages only
did the same search using pacman.. and the result is also a lot..
Sometimes, -s's builtin ERE (Extended Regular Expressions) can cause a lot of unwanted results, so it has to be limited to match the package name only; not the description nor any other field:
Never cross my mind that some packages name needed to search from internet for it before punch into package manager search.
I Literately thought that i can find any package just by typing name into yay, and grep it to my desired package.
Isn't that a bit...detouring to search for the package name from internet and then copy and paste it to package manager search ? ***just my thought**
Since i have to search the "unexpected package name" from internet, might well i just grab it from the author website ?
Ya, so i know now that i can try out some of these... "globbing" keys... with only this yield less than 5 result, which is good enough.. However, without searching from internet, sometime might still need to do guess in order for the package manager to return usable result.
$ pacman -Ss '^tor'
Thanks.. learnt how to user package manager to locate package that come with "no so direct name".
In a pinch, you could also pipe the output of a search into grep with the following command:
Pacman -Ss <QUERY> | grep <QUERY>
Grep is your friend
Ya, i did that too, but it does not work because the end result is exactly the same. and the result of that search was hundreds..
it is the regex that able to narrows it down as what @hish2021 suggested.
If in case not sure what the the exact package name, then need to do search on http arch package search.
I have got it.
Thx
Code:
$ pacman -Ssq tor | grep ^tor
tor
torbrowser-launcher <----
torrential
torsocks
Code:
$ pacman -Ssq ^tor
python-threadloop
tor
torbrowser-launcher <---
torrential
torsocks
Distribution: Arch Linux, Slackware -current, CRUX Linux
Posts: 26
Rep:
Quote:
Originally Posted by andrewysk
Ya, i did that too, but it does not work because the end result is exactly the same. and the result of that search was hundreds..
it is the regex that able to narrows it down as what @hish2021 suggested.
If in case not sure what the the exact package name, then need to do search on http arch package search.
I have got it.
Thx
Code:
$ pacman -Ssq tor | grep ^tor
tor
torbrowser-launcher <----
torrential
torsocks
Code:
$ pacman -Ssq ^tor
python-threadloop
tor
torbrowser-launcher <---
torrential
torsocks
Sorry, forgot to elaborate on that. Grep would only be a viable solution if you want a nested query, per se (for instance, pacman -Ss tor | grep browser).
However, this is pretty clunky, and is, in hindsight, a novelty solution.
I’m very sorry to have messed up there, I’m still kind of a klutz in the Linux world
Sorry, forgot to elaborate on that. Grep would only be a viable solution if you want a nested query, per se (for instance, pacman -Ss tor | grep browser).
However, this is pretty clunky, and is, in hindsight, a novelty solution.
I’m very sorry to have messed up there, I’m still kind of a klutz in the Linux world
I believe it is no harm for anyone with good intention of trying to help out, So, ya..it is ok. Thx
Btw, The main issue with me in this thread was, i don't even know tor browser package name.. hence i was thinking tor package should be "tor".. if it have known that tor browser will be call tor-browser, i would have searched for "tor.*browser".
The 2nd reason why i failed at it because i have forgotten to use regex in the search (i have never use regex in pacman before.. this is first time.. so ya. this issue will not occur for me anymore in the future..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.