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

[no subject]



#!/usr/bin/perl

@LINES=`yum list installed`

foreach my $ref (@LINES) {
  $ref =~ m/$(\w+)\s/;
   next unless $1;
   system "yum update $1";
}

# END




</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00155" href="msg00155.html">[ale] Yum automatic updates</a></strong>
<ul><li><em>From:</em> pizza at shaftnet.org (Stuffed Crust)</li></ul></li>
<li><strong><a name="00675" href="msg00675.html">[ale] Yum automatic updates</a></strong>
<ul><li><em>From:</em> oloryn at benshome.net (Ben Coleman)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00152.html">[ale] Suse 9.1 Consortium # 1 - closed</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00154.html">[ale] OT: [Fwd: Outsourcing: What does that have to do with me?]</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00146.html">[ale] OT: Longhorn average system?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00155.html">[ale] Yum automatic updates</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00153"><strong>Date</strong></a></li>
<li><a href="threads.html#00153"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>