On 5/23/2022 5:12 PM, Thomas Cameron wrote:
Write your list so that all the packages are on a single line, and
just add rpm -e to the head of that line:
rpm -e foo bar baz
Or:
for i in `cat list`; do rpm -e $i
I see, thanks much Thomas, so this would then be kind of doing the
work of grep. I have used cat and grep together with a pipe, which seems
similar
cat list |grep "word"
And it seems to work.
I would honestly probably use yum for this, though, since it takes
care of dependencies and the like.
So if your list of packages is:
foo bar baz
I would just add "yum remove" to the beginning of the list:
yum -y remove foo bar baz
Thomas
It worked using this,
yum remove $(cat list)
I have never heard of 'command substitution'. seeing the $ has always
made me think of variables, like such,
echo $PATH, to see a value.
Cheers.