jeudi 17 octobre 2013

CentOS package management rollercoaster

Just a quick one liner to recover from a not so sucessfull upgrade on CentOS ...

for p in $(yum update | grep "is a duplicate"  | awk ' { print $6 }'); do rpm -e 
--nodeps --justdb  $p ; done

The package were effectively upgraded but the previous version of the package was still in the rpm database for some reason, this one liner take the duplicate (old one) and remove it's definition from the DB.

Aucun commentaire:

Enregistrer un commentaire

Hadoop / Spark2 snippet that took way too long to figure out

This is a collection of links and snippet that took me way too long to figure out; I've copied them here with a bit of documentation in...