On 08/05/16 01:53, Nicolas Kovacs wrote: > Le 07/05/2016 14:57, Peter a écrit : >> Rather than remove them and add them back use yum shell to just remove >> the packages not in base or core: >> >> yum shell >> remove * >> install kernel @core @base >> run >> quit > > Sounds interesting. Does this work in a script? Yes, but you need to put the yum shell commands in a separate file. See yum-shell(8) for details. Peter