Friday, October 21, 2011

use Urpmi to upgrade perl

Perform the following in the specified order to prevent breaking urpmi
  •  Always upgrade urpmi first
    urpmi urpmi
  • Use rpm to query all installed perl packages and display only package names (without distributions)
    rpm -qa --qf '%{name}\n' | grep -i perl
  • Feed the results of the above query to urpmi (to upgrade all perl related packages)
    urpmi `rpm -qa --qf '%{name}\n' | grep -i perl`

No comments: