I am looking for a command that will let me look for an rpm installed in my machine and remove it, the only information about the rpm to delete that I have is a suffix of its name, that's what I want to do in one command:
rpm -qa | grep -i $rpmnameSuffix >> output
rpm -e output
Use command substitution to substitute the output of a command into another command line.
rpm -e "$(rpm -qa | grep -i $rpmnameSuffix)"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.