[Yum-devel] [RFC] Minimal groups and packages list

seth vidal skvidal at fedoraproject.org
Mon Sep 27 16:19:40 UTC 2010


On Mon, 2010-09-27 at 18:10 +0200, FlorianFesti wrote:
> Hi!
> 
> While thinking about a better UI for installing, viewing and removing 
> packages I came up with the idea of having a tool generating a kind of 
> %packages section as found in a kickstart file that would lead to 
> packages being installed as currently on the system. This format has the 
> advantage that it can even use groups if not all packages from that 
> group are installed as unneede packages can be excluded with 
> "-packagename". Fortunatedly this syntax is already understood by yum 
> which also allows to generate a yum command line. The goal is comming up 
> with a description of the packages installed on the system that is 
> significantly shorter than the package list itself. The program prints a 
> short statistic as last line. As it shows how well this "compression" 
> works I'd be interested in the result people are willing to share.
> 
> Attached is the very first version of the tool. It does not yet take any 
> parameters and does only support one single format. Everything but the 
> very basic idea is still to discussion. My next steps would getting it 
> ready for inclusion into yum-utils. Suggestions about formats, cli 
> options, additional features are very welcome.
> 
> If developers of GUI programs are interested in this functionality (this 
> was the use case I originally thought about) I'd love to hear about 
> suggestions or requests regarding the API.
> 

Neat - seems like a good yum-util.

You may want to replace
self.allpkgs = set(self.yum.rpmdb.getNamePkgList())
with
self.allpkgs = set(pkg.name for pkg in packages)

to avoid the deprecation warning

-sv





More information about the Yum-devel mailing list