PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP4 deinstallieren



Sergius
22.11.06, 16:40
hallo Leute

(Debian Sarge, Root-Server)

ich versuche gerade PHP4 zu deinstallieren, um später dadrauf PHP5 zu installieren.
Ich habe hier schon den Tutorial durchgeschaut, wie man von PHP4 auf PHP5 upgraded, da aber gerade PHP4 hier sowieso schon Fehler aufweisst, will ich erstmal das weg haben.

Also dann stelle ich einfach mal die Fragen:

a) Unterstützt Debian Sarge die PHP5 überhaupt ? ich denke schon

b) also ich gehe folgendermassen vor um PHP zu deinstallieren, klappt aber nicht:

um Namen von dem PHP4 paket zu finden (brauche ja für deinstallation)



apt-cache search php4




debian31lamp:~# apt-cache search php4
apache2-prefork-dev - development headers for apache2
caudium - An extensible WWW server written in Pike
caudium-dev - Development files for Caudium
caudium-modules - C modules for Caudium
caudium-perl - Perl script support for Caudium
caudium-pixsl - Pike XSLT module for Caudium
caudium-ultralog - Log Parser module for Caudium
dbtcp - Miscellaneous command-line DBTCP utils
fibusql - Web based double-entry accounting
jffnms - web-based Network Management System (NMS) for IP networks
libphp-jpgraph - Object oriented graph library for php4
libphp-jpgraph-examples - Object oriented graph library for php4 (examples)
libphp-phplot - The graphic library for PHP
mapserver-bin - mapserver binary utilities
mapserver-doc - documentation for mapserver
odontolinux - Dental office management software (PHP4 + PostgreSQL)
php-imlib - PHP Imlib2 Extension
php4-apd - PHP code execution profiler and debugger
php4-auth-pam - A PHP extension for PAM authentication
php4-dbtcp - PHP bindings for DBTCP
php4-gpib - libgpib php bindings
php4-idn - PHP api for the IDNA library
php4-imagick - ImageMagick module for php4
php4-interbase - InterBase (FireBird) module for PHP4
php4-maxdb - PHP extension to access MaxDB databases
php4-mcrypt - MCrypt module for php4
php4-pear-log - Log module for PEAR
php4-pgsql - PostgreSQL module for php4
php4-ps - An extension to create PostScript files
php4-rrdtool - RRD module for php4
php4-sqlite - PHP4 bindings to SQLite, a file-based SQL engine
php4-sqlrelay - SQL Relay PHP API
php4-syck - YAML parser kit -- PHP4 bindings
php4-tclink - TrustCommerce TCLink module for php4
phpgroupware-felamimail - phpGroupWare felamimail (Squirrelmail) module
phpunit - Unit testing suite for PHP4
squirrelmail - Webmail for nuts
wordtrans-web - Multi Language Word Translator for Linux
phpdoc - Documentation for PHP4 and PHP3
libapache-mod-php4 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache2-mod-php4 - server-side, HTML-embedded scripting language (apache 2.0 module)
php4 - server-side, HTML-embedded scripting language (meta-package)
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php4-cli - command-line interpreter for the php4 scripting language
php4-common - Common files for packages built from the php4 source
php4-curl - CURL module for php4
php4-dev - Files for PHP4 module development
php4-domxml - XMLv2 module for php4
php4-gd - GD module for php4
php4-imap - IMAP module for php4
php4-ldap - LDAP module for php4
php4-mcal - MCAL calendar module for php4
php4-mhash - MHASH module for php4
php4-mysql - MySQL module for php4
php4-odbc - ODBC module for php4
php4-pear - PEAR - PHP Extension and Application Repository
php4-recode - Character recoding module for php4
php4-snmp - SNMP module for php4
php4-sybase - Sybase / MS SQL Server module for php4
php4-xslt - XSLT module for php4
debian31lamp:~#


ok, ziemlich viele packete, ich gehe mal hier davon aus, dass "php4" hauptpaket ist und alle "php4-xxx" davon abhängen
reicht es also aus nur "php4" zu removen ?



apt-get remove php4




debian31lamp:~# apt-get remove php4
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libapache2-mod-php4 php4-cgi php4-cli php4-common php4-curl php4-gd
php4-imap php4-mcal php4-mhash php4-mysql phpmyadmin
The following packages will be REMOVED:
php4
The following NEW packages will be installed:
php4-cgi
The following packages will be upgraded:
libapache2-mod-php4 php4-cli php4-common php4-curl php4-gd php4-imap
php4-mcal php4-mhash php4-mysql phpmyadmin
10 upgraded, 1 newly installed, 1 to remove and 7 not upgraded.
Need to get 9502kB of archives.
After unpacking 6210kB of additional disk space will be used.
Do you want to continue? [Y/n]


ok, ich drücke mal "n" ich will ja php4 deinstallieren und nicht noch extra was updaten,... komme wieder zu der bash, passiert nicht



Do you want to continue? [Y/n] n
Abort.


ok, mal detailierte Informationen schauen



apt-cache show php4




debian31lamp:~# apt-cache show php4
Package: php4
Priority: optional
Section: web
Installed-Size: 24
Maintainer: Adam Conrad <adconrad@0c3.net>
Architecture: all
Version: 4:4.3.10-18
Depends: libapache-mod-php4 (>= 4:4.3.10-18) | libapache2-mod-php4 (>= 4:4.3.10-18), php4-common (>= 4:4.3.10-18)
Filename: pool/updates/main/p/php4/php4_4.3.10-18_all.deb
Size: 1144
MD5sum: 26260bbbf8804b071cdf75ce70bde876
SHA1: 80254c835b91982cd5f61ddb3b96d772fb97f0d0
SHA256: c0a48f40d0e450b0c232e41ff819632472953239c7de38c6f2 1315d93c9d8ef7
Description: server-side, HTML-embedded scripting language (meta-package)
This package is a meta-package that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP4 interpreter
installed. Removing this package won't remove PHP4 from your system, however
it may remove other packages that depend on this one.
.
PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write dynamically
generated pages quickly.
.
Homepage: http://www.php.net/

Package: php4
Priority: optional
Section: web
Installed-Size: 24
Maintainer: Adam Conrad <adconrad@0c3.net>
Architecture: all
Version: 4:4.3.10-16
Depends: libapache-mod-php4 (>= 4:4.3.10-16) | libapache2-mod-php4 (>= 4:4.3.10-16), php4-common (>= 4:4.3.10-16)
Filename: pool/main/p/php4/php4_4.3.10-16_all.deb
Size: 1148
MD5sum: a280716fde4fd6d05dddeaff37a49d54
SHA1: 9b3ef234f62fc01157ffe6822641417d63ea42fd
SHA256: 034c06cf024b845aa6efeeb2674f751672a4e62008f9c2387c 24320319f6f41d
Description: server-side, HTML-embedded scripting language (meta-package)
This package is a meta-package that, when installed, guarantees that you
have at least one of the four server-side versions of the PHP4 interpreter
installed. Removing this package won't remove PHP4 from your system, however
it may remove other packages that depend on this one.
.
PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
from C, Java and Perl with a couple of unique PHP-specific features thrown
in. The goal of the language is to allow web developers to write dynamically
generated pages quickly.
.
Homepage: http://www.php.net/

debian31lamp:~#


gut, versuche mit



apt-get remove libapache-mod-php4




debian31lamp:~# apt-get remove libapache-mod-php4
Reading Package Lists... Done
Building Dependency Tree... Done
Package libapache-mod-php4 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.


will auch nicht...

sorry, aber ich habe vielleicht noch nicht ganz viel Erfahrung,
also hilft mir bitte :-)

Mµ*e^13.5_?¿
22.11.06, 19:30
dpkg -l | grep php4
Damit kannst du alle installierten Pakete mit "php4" im Namen sehen.
ich denke damit kommst du weiter.

Sergius
22.11.06, 19:34
debian31lamp:~# dpkg -l | grep php4




ii php4-cli 4.3.10-18 command-line interpreter for the php4 script
ii php4-common 4.3.10-18 Common files for packages built from the php
ii php4-curl 4.3.10-18 CURL module for php4
ii php4-dev 4.3.10-18 Files for PHP4 module development
ii php4-gd 4.3.10-18 GD module for php4
ii php4-imap 4.3.10-18 IMAP module for php4
ii php4-mcal 4.3.10-18 MCAL calendar module for php4
ii php4-mhash 4.3.10-18 MHASH module for php4
ii php4-mysql 4.3.10-18 MySQL module for php4
ii php4-pear 4.3.10-18 PEAR - PHP Extension and Application Reposit


ok, also ich habe php4 noch drauf,
das problem ist wie ich das deinstallieren kann...

Filzo
22.11.06, 20:24
remove die dinger da mal einzeln: dpkg --remove foo

Sergius
22.11.06, 21:18
remove die dinger da mal einzeln: dpkg --remove foo

aber dann bleiben doch alle pakete, von dennen die oben abhängen immer noch drin im system quasi als leichen... und die ganze docs, variablen, konfigs etc auch oder ?

MiGo
22.11.06, 23:21
von dennen die oben abhängen immer noch drin im system quasi als leichen.
Naja, davon sollte eigentlich nichts mehr abhängen.
Alternativ kannst du den Kram auch mit apt-get remove php4* entfernen (das wird von apt aufgelöst).


.. und die ganze docs, variablen, konfigs etc auch oder ?
für sowas gibts den Schalter "--purge":
apt-get remove --purge IchWillsGarNichtMehrHaben

Sergius
23.11.06, 08:55
Naja, davon sollte eigentlich nichts mehr abhängen.
Alternativ kannst du den Kram auch mit apt-get remove php4* entfernen (das wird von apt aufgelöst).


@MiGo,
schaue mal erstes Posting, genau das habe ich versucht, und das geht nicht.
Genau das ist das Problem

MiGo
23.11.06, 19:12
schaue mal erstes Posting, genau das habe ich versucht, und das geht nicht.
Schau mal in mein Posting....

debian31lamp:~# apt-get remove php4
ist nicht

apt-get remove php4*
:)