Yum-upgrade-3.2.4: Difference between revisions

From Linix VServer
Jump to navigationJump to search
(New page: yum-3.2.4 adds a new persistdir option. util-vserver-0.3.215 will set correct options but for existing installations they must be added manually. E.g. by <pre> for i in /vservers/.pkg/*...)
 
imported>Glenn
(catspec)
 
(2 intermediate revisions by 2 users not shown)
Line 9: Line 9:
   done
   done
</pre>
</pre>
[[Category:Software under linux-vserver]]

Latest revision as of 20:50, 21 October 2011

yum-3.2.4 adds a new persistdir option. util-vserver-0.3.215 will set correct options but for existing installations they must be added manually. E.g. by

  for i in /vservers/.pkg/*/yum; do 
    ! grep -q ^persistdir= $i/etc/yum.conf || continue
    echo $i
    mkdir -p $i/lib     # this is the new persistdir (yum defaults to <chroot>/var/lib/yum)
    sed -ie '/^cachedir=/{p;s/^cache\(.*\)cache/persist\1lib/}' $i/etc/yum.conf
  done