User Tools

Site Tools


informatica:servidor_internet_2009_debian_10_part_2

This is an old revision of the document!


Actualització a Debian 10.12 "buster" - Part 2 - Agost de 2022

Debian 10.12 es va publicar el 26 de març de 2022. Debian 10.0 es va publicar inicialment el 6 de juliol de 2019.

Aquesta pàgina conté la segona part de la descripció detallada del procés d'actualització a Debian 10.12 “buster”.

Instal·lació de PHP5

Segueixo les instruccions a https://tecadmin.net/install-apache-php-fpm-debian-10/ per instal·lar PHP-5 a partir del magatzem Sury,

Primer edito el contingut del fitxer /etc/apt/sources.list.d/06-php-from-sury.list per activar el magatzem Sury

$ cat /etc/apt/sources.list.d/06-php-from-sury.list
     ## deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ buster main

     deb https://packages.sury.org/php/ buster main

# apt update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.es.debian.org/debian buster InRelease                                
Get:3 https://packages.sury.org/php buster InRelease [6,837 B]                        
Hit:4 http://ftp.es.debian.org/debian buster-updates InRelease          
Hit:5 http://ftp.es.debian.org/debian buster-backports InRelease
Get:6 http://ftp.es.debian.org/debian buster/main DEP-11 48x48 Icons [3,770 kB]
Get:7 https://packages.sury.org/php buster/main amd64 Packages [364 kB]
Get:8 http://ftp.es.debian.org/debian buster/contrib DEP-11 48x48 Icons [56.4 kB]
Get:9 http://ftp.es.debian.org/debian buster/non-free DEP-11 48x48 Icons [3,491 B]
Fetched 4,200 kB in 2s (2,766 kB/s)                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
54 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@sermnserver:/etc/apt/sources.list.d# apt list --upgradable
Listing... Done
enchant/buster 1.6.1-1+0~20210212.1+debian10~1.gbp73138d amd64 [upgradable from: 1.6.0-11.1+b1]
libapache2-mod-php7.0/buster 7.0.33-60+0~20220627.68+debian10~1.gbp3d361a amd64 [upgradable from: 7.0.33-0+deb9u12]
...
Get:68 https://packages.sury.org/php buster/main amd64 php7.3 all 7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4 [49.1 kB]
Get:69 https://packages.sury.org/php buster/main amd64 python3-libxml2 amd64 2.9.14+dfsg-0+0~20220524.12+debian10~1.gbpc5dc45 [205 kB]
Fetched 25.3 MB in 2s (10.2 MB/s)     
Reading changelogs... Done
Extracting templates from packages: 100%
(Reading database ... 220576 files and directories currently installed.)




# php -v                                                                                                                                   
PHP 8.1.8 (cli) (built: Jul 11 2022 08:53:35) (NTS)                                                    
Copyright (c) The PHP Group                                                                                                                                                              
Zend Engine v4.1.8, Copyright (c) Zend Technologies                                                    
    with Zend OPcache v8.1.8, Copyright (c), by Zend Technologies                                                                                                                        

# apt install php5.6                    
Reading package lists... Done                                                                                                                 
Building dependency tree                                                                   
Reading state information... Done                                                          
The following package was automatically installed and is no longer required:         
  php7.3-mysql                                                                                          
Use 'apt autoremove' to remove it.                                                                          
The following additional packages will be installed:                                                                
  libapache2-mod-php5.6 php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline                                         
The following NEW packages will be installed:                                                                                                                                          
  libapache2-mod-php5.6 php5.6 php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline                               
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.                                                                    
Need to get 3,662 kB of archives.                                                                                                                                                        
After this operation, 14.2 MB of additional disk space will be used.                                                                                                                 
Do you want to continue? [Y/n]         
Get:1 https://packages.sury.org/php buster/main amd64 php5.6-common amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [736 kB]                                                         
Get:2 https://packages.sury.org/php buster/main amd64 php5.6-json amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [17.9 kB]                                                           
Get:3 https://packages.sury.org/php buster/main amd64 php5.6-opcache amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [63.0 kB]                                                        
Get:4 https://packages.sury.org/php buster/main amd64 php5.6-readline amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [13.0 kB]
Get:5 https://packages.sury.org/php buster/main amd64 php5.6-cli amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [1,303 kB]
Get:6 https://packages.sury.org/php buster/main amd64 libapache2-mod-php5.6 amd64 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [1,260 kB]
Get:7 https://packages.sury.org/php buster/main amd64 php5.6 all 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd [268 kB]
Fetched 3,662 kB in 0s (7,763 kB/s)
Selecting previously unselected package php5.6-common.
(Reading database ... 220795 files and directories currently installed.)
Preparing to unpack .../0-php5.6-common_5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd_amd64.deb ...
Unpacking php5.6-common (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
Selecting previously unselected package php5.6-json.
Preparing to unpack .../1-php5.6-json_5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd_amd64.deb ...
Unpacking php5.6-json (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
...
Creating config file /etc/php/5.6/mods-available/opcache.ini with new version
Setting up php5.6-readline (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

Creating config file /etc/php/5.6/mods-available/readline.ini with new version
Setting up php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

Creating config file /etc/php/5.6/cli/php.ini with new version
Setting up libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

Creating config file /etc/php/5.6/apache2/php.ini with new version
libapache2-mod-php5.6: php5 module already enabled, not enabling PHP 5.6
Setting up php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for php5.6-cli (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...
Processing triggers for libapache2-mod-php5.6 (5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd) ...

# update-alternatives --set php /usr/bin/php5.6
update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in manual mode

# php -v
PHP 5.6.40-60+0~20220627.67+debian10~1.gbp1f7ffd (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
informatica/servidor_internet_2009_debian_10_part_2.1660055976.txt.gz · Last modified: 2022/08/09 16:39 by miquel