[Yum] Scripting Yum

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

 



On Thu, 4 Aug 2005, Simon Perreault wrote:

> Hello,
>
> I've been trying to drive yum from a script. I've realized that yum (the
> command) is really a command-line GUI, not designed for being scripted the
> UNIX way.
>
> For example: I wanted to get the names of packages available for update. Easy,
> I thought, I'll just parse the output of "yum list updates". But there is a
> problem with packages whose name is longer than the width of the column for
> names. Some packages' name ends "under" the version column. So, what are my
> options?

Some of what you might already exist in repoquery from yum-utils, which 
unlike yum, is intented for scripting, just as rpm -q is and has rpm-like 
--queryformat formatting support. The current version wont give you 
'updated packages' in any easy way (you'd have to compare against rpm -q 
output etc) but I'm not opposed to adding something like 
--list=updates/avail/recent/extras to it as that functionality already 
exists in yum libraries.

 	- Panu -

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux