티스토리 뷰

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' 옵션으로 삭제가 되었다.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함