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

Re: "yum --partial" feature as a bash line



cybernet interia pl wrote:

Since the yum "bug" topic flooded the mailing list, this is a new post. A few days ago someone proposed a "yum --partial" feature in order to have partial updates instead of no updates - e.g if eclipse is broken, then why shouldn't httpd get updated?

Heres a quick "answer" :

# get a list of items
# remove 4 lines from top  (tac/head/tac)
# try to update one item at a time
for k in `yum list updates | awk '{ print $1 }' | tac | head -n-4 | tac`; do yum -y update $k; done

This has been added long back to http://fedoraproject.org/wiki/Tools/yum

regards
Rahul


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