Re: yum list display some package in 2 rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/01/2009 11:45 AM, Ambrogio wrote:
Il giorno sab, 31/01/2009 alle 14.23 -0430, Patrick O'Callaghan ha
scritto:

I did the same experiment with the same result. What I don't understand
is why this is a problem. If you're piping the output of "yum list" to
something else for further processing, you're getting one line of
output, which is what you want.
This is not true.

For example if I run this command
yum list | grep Network
NetworkManager.i386                1:0.7.0-0.12.svn4326.fc9
NetworkManager-glib.i386           1:0.7.0-0.12.svn4326.fc9
NetworkManager-gnome.i386          1:0.7.0-0.12.svn4326.fc9
NetworkManager-openvpn.i386        1:0.7.0-16.svn4326.fc9
NetworkManager-vpnc.i386           1:0.7.0-0.11.svn4326.fc9
NetworkManager-devel.i386          1:0.7.0-0.12.svn4326.fc9
NetworkManager-glib-devel.i386     1:0.7.0-0.12.svn4326.fc9
NetworkManager-openconnect.i386    0.7.0-4.svn14.fc9   updates-newkey
NetworkManager-pptp.i386           1:0.7.0-0.12.svn4326.fc9
yum-NetworkManager-dispatcher.noarch

the result is not as expected.
For the first 7 row I can't know from which repo is the package.
The row 8 is the only one right
For the last row I can't understand what is the version.

You are right. I had experimented with only one package and the behaviour was as I said, but on doing "yum list|less" I see that some packages are indeed reported on two lines. Yum is clearly formatting the output with a default maximum line length (or screen width), even though I did this on a wide terminal window.

So it *is* a bug. This is just not reasonable behaviour, and furthermore is at odds with many other Linux tools which either a) notice when stdout is not a terminal, or b) have a command-line option to prevent this kind of thing.

poc

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux