SliTaz SliTaz Forum

You are not logged in.

#1 2013-02-27 22:44:19

cymon
Member
Registered: 2012-10-21
Posts: 3

PHP 5.4 upgrade with package manager

Hi,

i'm trying to upgrade the php 5.2 of the SLitaz 4.0 with php 5.4. I found on this forum that php 5.4 is here: http://pangolin.slitaz.org/downloads/packages/backports/4.0/

I tried to add the repository in the tazpanel or configure it with tazpkg but everytime I search for php i find only the 5.2 version.

Obviously i could download all the packages and install them, but i was looking for a smart way to do it :-)

Offline

#2 2013-02-28 03:31:12

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: PHP 5.4 upgrade with package manager

Hi cymon,

[c]# tazpkg add-undigest[/c]

Enter

Type the full URL followed by Enter

[c]# http://pangolin.slitaz.org/downloads/packages/backports/4.0/[/c]

[c]# tazpkg recharge[/c]

This server only has packages.list and packages.md5 ignore the 404 errors for other repo files

[c]# tazpkg search pgp-soap[/c]

It will show versions from 4.0 repo and backport undigest

If you want to get but not install the newer file use name-version otherwise it downloads the lower version from 4.0 repo

[c]# tazpkg get php-5.4[/c]

I install php-5.2.17 php-common-5.2.17 php-soap-5.2.17

Check for upgrade,tazpkg will indicates newer versions are available.

[c]# tazpkg up -c[/c]

[c]n[/c]

[c]# tazpkg -cc[/c] <= I clear the cache removing old versions which are installed hoping it download/installs the new 5.4.4 versions from backport/undigest

[c]# tazpkg up[/c]

[c]y[/c]

The old 5.2.17 versions are downloaded from the repo and re-installed :-(

I achieve the upgrade by installing each tazpkg using the version number:

[c]# tazpkg -gi php-soap-5.4.4[/c]

[c]# tazpkg -gi php-5.4.4[/c]

[c]# tazpkg -gi php-common-5.4.4[/c]

Tazpkg gives priority to mirror over undigest even if package versions on undigest are higher.

Please reply if you know a way to setup tazpkg to upgrade them all with one command!

Offline

#3 2013-02-28 23:06:30

cymon
Member
Registered: 2012-10-21
Posts: 3

Re: PHP 5.4 upgrade with package manager

Hi Mojo,

thank you for your help, now i understood the right way to add a repository, at last!

I didn't find how use the package manager to do the upgrade, but because i'm lazy, i wrote this little script to do the dirty work:

#!/bin/bash

REPO=http://pangolin.slitaz.org/downloads/packages/backports/4.0/

LIST=packages.list

wget $REPO$LIST

for pkg in [c]cat $LIST[/c]

do

    if [ $pkg != $LIST ]; then

        tazpkg -gi $pkg;

    fi

done

Obviously this way you install ALL the packages of the repository, but when i speak about PHP usually I do things the dumbest and largest way i can :-P

Now i've just a little warning about "phpcups: Unable to intialize module" but php seems working well.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]