Re: yum search behaviour change from 3.0.x to 3.2.x

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Tue, 27 May 2008 10:03:49 +0200, denis wrote:

> Hi,
> 
> Red Hat recently updated YUM from 3.0.1 (RHEL5) to 3.2.8 (RHEL5.2), and
> along came changes..
> 
> previously a "yum -d0 search redhat-lsb" would display results like
> this: "
> redhat-lsb.i386      3.1-12.2.EL            rhel-x86_64-serv
> redhat-lsb.x86_64    3.1-12.2.EL            rhel-x86_64-serv
> redhat-lsb.i386      3.1-12.3.EL            rhel-x86_64-serv
> redhat-lsb.x86_64    3.1-12.3.EL            rhel-x86_64-serv
> redhat-lsb.i386      3.1-12.3.EL            installed redhat-lsb.x86_64 
>   3.1-12.3.EL            installed "
> 
> The new output is:
> "
> redhat-lsb.x86_64 : LSB support for Red Hat Linux
> 
> redhat-lsb.i386 : LSB support for Red Hat Linux redhat-lsb.x86_64 : LSB
> support for Red Hat Linux redhat-lsb.i386 : LSB support for Red Hat
> Linux
> 
> redhat-lsb.i386 : LSB support for Red Hat Linux
> 
> redhat-lsb.x86_64 : LSB support for Red Hat Linux
> 
> "
> (Whitespace intentionally included.)

 You might think it'd be better to line up the start of the summary,
however this doesn't work well for packages like php-Pear-Str* (in
Fedora).

> Is there any way for me to get the old behaviour back? I really liked
> that I could easily see all available packages, what repository they
> were sourced from, and in the same list see installed versions of
> matching packages.

 If you want to rely on the text output, the best way would be to write
a simple application using the yum API as in:

http://linux.duke.edu/~skvidal/useful-scripts/simple-search.py

...as I know we've tweaked the output slightly for both the search and
list commands, since 3.2.8.

> "yum list all" / "yum list available" sort of work, but do not deliver
> the same recall when searching.

-- 
James Antill -- [email protected]
C String APIs use too much memory? ustr: length, ref count, size and
read-only/fixed. Ave. 44% overhead over strdup(), for 0-20B strings
http://www.and.org/ustr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.