which was an upgrade of Mag 3 which was an upgrade of Mag2:
- Code: Select all
#!/bin/sh
filename="orphans.txt"
while read line
do
yum remove -y $line # y is pre-emptive yes
done <$filename
rpmorphan
# run rpmorphan > /home/tomato/Desktop/orphans.txt
# then this file as su - this file is in bin folder
# 29/3/14 had to run it 6 times to remove all orphans
Above constitutes the file, including the comments which were for reminding myself in future.
There might be some recursive way to avoid the 6 time repeat, but it was good enough for me on this occasion.