Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
5.68k stars 221 forks source link

Too many package results. #1196

Open berbigou opened 1 month ago

berbigou commented 1 month ago

Affected Version

paru v2.0.3 - libalpm v14.0.0

Description

When typing paru rar (because package was outdated), I encountered this : "Too many package results." Even removing "core" / "extra" / "multilib" from pacman.conf changes nothing. I'd like to be able to see at least certain packages, or see at least the one that exactly matches my search (as you can guess, it exists, see https://aur.archlinux.org/packages/rar )

Output

$ paru rar erreur : Too many package results.

# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options

#
# GENERAL OPTIONS
#
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil
#AurOnly
BottomUp
RemoveMake
#SudoLoop
#UseAsk
#SaveChanges
#CombinedUpgrade
#CleanAfter
#UpgradeMenu
NewsOnUpgrade

#LocalRepo
#Chroot
#Sign
#SignDb
#KeepRepoCache

#
# Binary OPTIONS
#
[bin]
#FileManager = vifm
FileManager = nnn
#MFlags = --skippgpcheck
#Sudo = doas
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
ILoveCandy
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =
NoExtract = usr/share/man/*
NoExtract = usr/share/locale/[a-z]*/*
NoExtract = !usr/share/locale/fr/*
NoExtract = !usr/share/locale/fr_FR/*
NoExtract = !usr/share/locale/en/*
NoExtract = !usr/share/locale/en_US/*

# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 20

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[core-testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

#[extra-testing]
#Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
Morganamilo commented 1 month ago

The aur has a cap on how many results it will return. Use a more specific search.

berbigou commented 1 month ago

No kidding ? (;-) how, when your package is "rar" ? quoting me "I'd like to be able to see at least certain packages, or see at least the one that exactly matches my search (as you can guess, it exists, see https://aur.archlinux.org/packages/rar )"

Many thanks.

Morganamilo commented 1 month ago

Use --searchby name to not also search descriptions.

berbigou commented 1 month ago

True ! paru rar --searchby name gives an answer, thank you. BUT it gives more than 500 results, like package "acl" which doesn't depend on rar (maybe because description of acl contains the word "libRARies" wich contains rar ?), and then, why is it giving "acl" as a result of "--searchby name" ? I'm lucky it does not give more answers, and there is still something wrong. Sorry, this doesn't solve entirely the issue, and I do think another solution would be useful.

Morganamilo commented 1 month ago

Searchby controls the AUR search. The repo search is not controllable.

berbigou commented 1 month ago

I see : paru rar --searchby name -a only gives 114 answers, all with "rar" in names. So I guess rar is a very lonely, not-so-disruptive package compared to the large extent of AUR. I still think something like "--limited=" or "--exact-search" would prevent another issue. Consider it closed , and many thanks for your work, time and answers !!