LiNuX
rpm 중복 설치된 패키지 삭제
freecatz
2022. 9. 13. 15:22
어쩌다 보니, CentOS 5.x 버젼대를 사용할 일이 발생 하였다.
[root@freecatz ~]# rpm -e --nodeps python-devel-2.4.3-46.el5
오류: "python-devel-2.4.3-46.el5" 여러개의 패키지를 지정합니다
설치된 패키지를 살펴 보았더니...
[root@freecatz ~]# rpm -qa | grep -i python-devel
python-devel-2.4.3-46.el5
python-devel-2.4.3-46.el5
동일한 패키지가 설치 되어 있다. 이게 가능 한건지...가능 하다면 왜...
[root@freecatz ~]# rpm -e --nodeps --force python-devel-2.4.3-46.el5
rpm: 설치, 업그레이드, 소스 삭제, spec 파일 삭제시에만 수행됩니다
삭제가 안되서 구글링 해보니...
[root@freecatz ~]# rpm -e --nodeps --allmatches python-devel-2.4.3-46.el5
이렇게 '--allmatches' 옵션으로 삭제가 되었다.