| Summary: | yum list command adds extra line when version text is long | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | redhatbug <mjmccaffrey> | ||||||
| Component: | yum | Assignee: | Seth Vidal <skvidal> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 15 | CC: | ffesti, james.antill, maxamillion, pmatilai, tla, zpavlas | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-06-27 18:34:32 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
redhatbug
2011-06-25 23:19:33 UTC
yum command output is not meant to be scriptable. You can use repoquery, or write python to talk to the yum API directly. (In reply to comment #1) > yum command output is not meant to be scriptable. You can use repoquery, or > write python to talk to the yum API directly. That's a shame. All that output and its not parseable (did not say scriptable) and I do think it would be useful if the output were consistent. Just wanted a quick way to see what updates would be included if the testing repo was enabled. rpm (query options) and repoquery are powerful tools but take time to use but will remember to use them instead. Perhaps it is parseable after all see attached script and output in archive sedyum.zip. What I was after was a list of updates from which I could delete those I did not want. In particular installation of the qt update was changing all the fonts in the kde workspace and Konsole to a rather anaemic one. Now that I have installed all the testing updates I wanted by passing the edited list from the script to yum the script now only lists (in the output attached) those testing updates I did no want!! Created attachment 510970 [details] New script and output see comment 3 See Comment 3 |