You are not logged in.

#1 2016-10-18 19:26:56

Andesell
Member
Registered: 2016-10-18
Posts: 2

Install and Update Package from User Repository instead from Main

Hello,

im new to Arch Linux or better, i would like to give it a test. AS i know Arch Linux is a rolling release distribution, the packages are always build against the newest versions of the Software. Mostly this is a really welcomed system. But sometimes not. For instance, i would like to use some Software which is only compatible with PHP 5.x, it will not run with PHP 7.x In my example, i could install PHP 5.x and the needed Software from a custom repository. PHP in Main is still on Version 7.x

Is it possible to upgrade now PHP only from this custom Repository and not automatically from Main? Are there Warnings i must disable or i have to ignore from Main in my case?

Offline

#2 2016-10-18 19:41:15

FlowIt
Member
Registered: 2014-10-25
Posts: 239

Re: Install and Update Package from User Repository instead from Main

The AUR has the php5x packages. These package conflict the official php package so if you need both it won't work. I guess you can modify php5x's PKGBUILD and rename the directories and binaries so it won't conflict, but your software that you want to run with php5 needs to be aware of the new names.

Offline

#3 2016-10-18 19:42:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: Install and Update Package from User Repository instead from Main

php5 in the AUR is a separate package from php7 so no problem at all.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-10-18 19:43:36

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Install and Update Package from User Repository instead from Main

The PHP 5.x in Arch User Repository is named 'php53', while php 7.x from official repos is named simply 'php'. Therefore pacman considers them as different packages and won't update php over php53.
It's possible for developers to make package 'b' replace package 'a', but that's probably not going to happen with php.

Offline

#5 2016-10-18 19:52:22

Andesell
Member
Registered: 2016-10-18
Posts: 2

Re: Install and Update Package from User Repository instead from Main

If i understand this correctly, i could install all the needed packages from https://aur.archlinux.org/packages/?K=martimcfly&SeB=m and php53 and get no warnings that i should upgrade to PHP7?

I don't need PHP7.

Last edited by Andesell (2016-10-18 20:00:46)

Offline

#6 2016-10-18 21:01:51

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: Install and Update Package from User Repository instead from Main

Andesell wrote:

If i understand this correctly, i could install all the needed packages from https://aur.archlinux.org/packages/?K=martimcfly&SeB=m and php53 and get no warnings that i should upgrade to PHP7?

It depends what you mean by 'install from' see Arch_User_Repository#Installing_packages
You would still need to rebuild / reinstall the packages as their dependencies are updated.

Offline

Board footer

Powered by FluxBB