SCIENTIFIC-LINUX-USERS Archives

July 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nico Kadel-Garcia <[log in to unmask]>
Reply To:
Nico Kadel-Garcia <[log in to unmask]>
Date:
Tue, 1 Jul 2014 18:29:04 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (13 lines)
Nico's is missing the '\n'. It should be:

     rm -rf /tmp/failed /tmp/success
     mkdir /tmp/failed /tmp/success
     RPMLIST=`rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'`
     for name in $RPMLIST; do
            yum reinstall $name -y 2>/tmp/failed/$name >/tmp/success/$name
     done

There are reasons I do them one at a time, and record the results.
It's also possible to manipulate with "--excluderepo=" and
"-includerepo" options, and store the errors.

ATOM RSS1 RSS2