Discussion:
does 'rpm -qa' yield a tsort of packages?
Brian Reichert
2008-06-18 19:43:15 UTC
Permalink
Does 'rpm -qa' yeild a topological sort of the the packages?

More specifically, should 'rpm -qa' yield the same results as the
rpm/python ts.tsort() method?
--
Brian Reichert <***@numachi.com>
55 Crystal Ave. #286 Daytime number: (603) 434-6842
Derry NH 03038-1725 USA BSD admin/developer at large
Vladimir Mihai Pacuraru
2008-06-19 16:08:13 UTC
Permalink
2. does 'rpm -qa' yield a tsort of packages? (Brian Reichert)
does 'rpm -qa' yield a tsort of packages?
Wed, 18 Jun 2008 15:43:15 -0400
Does 'rpm -qa' yeild a topological sort of the the packages?
More specifically, should 'rpm -qa' yield the same results as the
rpm/python ts.tsort() method?
What's wrong with calling rpm -qa | sort (usually a less is also
required as the list is really way too long).

Vlad
Nigel Metheringham
2008-06-19 16:23:39 UTC
Permalink
Post by Vladimir Mihai Pacuraru
What's wrong with calling rpm -qa | sort (usually a less is also
required as the list is really way too long).
Mostly that tsort (topological sort) bears pretty much no relation
to an alphabetical sort.

It might be possible to use the tsort shell command (for systems
that carry it) if you made rpm out the dependancy data in an appropriate
fashion, but it wouldn't work as is.

Nigel.
--
[ Nigel Metheringham ***@InTechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
Jeff Johnson
2008-06-21 18:52:09 UTC
Permalink
On Thu, Jun 19, 2008 at 12:23 PM, Nigel Metheringham <
Post by Nigel Metheringham
What's wrong with calling rpm -qa | sort (usually a less is also required
as the list is really way too long).
Mostly that tsort (topological sort) bears pretty much no relation
to an alphabetical sort.
WIth rpm-5.0 (and implemented several years ago, perhaps 4.4.3 I forget),
there is a -T option that will emit topologically sorted queries for several
forms of queries, certainly for rpm -qpT *.rpm.

73 de Jeff

Loading...