for i in $(cat file.txt); do
if rpm -qa | grep -qw $i; then
echo "$i is installed."
else
echo "$i is not installed."
fi
done
'나는 노동자 > LINUX' 카테고리의 다른 글
| openldap client 설정 (rhel8.6) (0) | 2025.03.14 |
|---|---|
| ansible extra vars (0) | 2023.02.13 |
| ansible 물리서버, 가성서버 확인 (0) | 2023.02.07 |
| ansible facts device check (0) | 2023.02.04 |
| 리눅스 임시 포트 오픈 (0) | 2023.01.12 |