나는 이것이 오래된 게시물이라는 것을 알고 있지만 최근에 비슷한 문제가 있었기 때문에 미래의 누군가가 유용하다고 생각하기 때문에 내 솔루션을 공유하고 싶습니다.
aptitude를 통해 패키지를 설치 한 경우 종속성 (자동)에 플래그를 자동으로 할당하고 패키지를 다시 제거하려고하면 자동 플래그가 여전히 설정된 모든 종속성을 제거하려고합니다.
내 경우에 알 수 있듯이 zabbix는 제거하고 싶습니다.
uman@mango:~$ sudo aptitude purge zabbix-server-mysql zabbix-frontend-php
The following packages will be REMOVED:
apache2{u} dbconfig-common{u} fping{u} javascript-common{u} libhtml-template-perl{u} libiksemel3{u} libjs-prototype{u}
libjs-scriptaculous{u} libopenipmi0{u} libt1-5{u} mysql-server{u} mysql-server-5.1{u} mysql-server-core-5.1{u} php5{u} php5-gd{u}
php5-mysql{u} snmpd{u} wwwconfig-common{u} zabbix-frontend-php{p} zabbix-server-mysql{p}
0 packages upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 44.9 MB will be freed.
Do you want to continue? [Y/n/?]
우리가 아파치 패키지를 찾아 보면
uman@mango:~$ aptitude search ^apache2
i A apache2 - Apache HTTP Server metapackage
<snip>
첫 번째 플래그 "i"는 아파치가 설치되었음을
나타냅니다. 다음 플래그 "A"는 자동으로 설치됨을 나타냅니다.
따라서이 문제를 해결하고 아파치, mysql 및 php를 제거하지 않으려면 다음과 같이 적절하게 auto 플래그를 제거하면됩니다.
uman@mango:~$ sudo aptitude unmarkauto apache2 mysql-server php5
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
zabbix 패키지를 제거 할 때 다음과 같이 보입니다 :
uman@mango:~$ sudo aptitude purge zabbix-server-mysql zabbix-frontend-php
The following packages will be REMOVED:
dbconfig-common{u} fping{u} javascript-common{u} libiksemel3{u} libjs-prototype{u} libjs-scriptaculous{u} libopenipmi0{u} libt1-5{u}
php5-gd{u} wwwconfig-common{u} zabbix-frontend-php{p} zabbix-server-mysql{p}
0 packages upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 16.6 MB will be freed.
Do you want to continue? [Y/n/?]
자세한 내용은 맨 페이지에서 적성을 확인하십시오.