
我只是使用命令列安裝 LAMP。sudo apt-get install lamp-server^
是工作!然後我需要卸載它們所以我嘗試sudo apt-get remove lamp-server^
順便說一下,它向我展示了下面的消息...
The following extra packages will be installed:
libsdl1.2debian-alsa
The following packages will be REMOVED:
apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bluez-cups cups cups-driver-gutenprint cups-pdf foo2zjs gdm gdm-guest-session
gecko-mediaplayer gnome-applets gnome-control-center gnome-media gnome-mplayer gnome-panel gnome-session gnome-settings-daemon goldendict gstreamer0.10-pulseaudio
hpijs hplip hplip-cups indicator-applet indicator-applet-appmenu indicator-applet-complete indicator-sound libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2-plugins libcanberra-pulse libdbd-mysql-perl libdbi-perl libhpmud0 libhtml-template-perl libmysqlclient16
libnet-daemon-perl libphonon4 libplrpc-perl libpulse-browse0 libpulse-mainloop-glib0 libpulse0 libqtwebkit4 libsane-hpaio libsdl1.2debian-pulseaudio libsnmp15
libwrap0 mplayer mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server
mysql-server-5.1 mysql-server-core-5.1 phonon phonon-backend-gstreamer php5-cli php5-common php5-mysql pulseaudio pulseaudio-esound-compat
pulseaudio-module-bluetooth pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils pxljr python-speechd speech-dispatcher splix
ssl-cert tcpd vlc-plugin-pulse
這是怎麼回事?我必須刪除pulseaudio、mplayer 和gdm 嗎?與 LAMP 有關嗎?
接下來,我嘗試使用命令列sudo apt-get --purge remove apache2
這些結果產生...
The following packages will be REMOVED: apache2*
這樣做安全嗎?我打算完全卸載LAMP。
答案1
透過嘗試使用 aptitude 清除 lamp-server,它會嘗試刪除 cups 和其他系統實用程式。這就是導致所有其他刪除的原因。您可以自行移除各個軟體包:aptitude remove apache2 php5 mysql-server
這將刪除apache2
伺服器、php5
和mysql-server
LAMP 的部分。之後,您可以刪除不需要的套件。但是,請告訴我這是否會觸發一長串其他刪除操作,因為如果確實如此,我們可能需要重新考慮用於刪除伺服器套件的方法。