cannot be installed with remi repo

by Gabriel Cánepa | Published: June 8, 2017 | June 8, 2017

If you are a system administrator, a developer, or a DevOps engineer, chances are that at some point you’ve had to set up (or work with) a LAMP (Linux / Apache / MySQL or MariaDB / PHP) stack.

The web and database servers, along with the well-known server-side language, are not available in their latest versions from the major distributions’ official repositories. If you like to play or work with cutting-edge software, you will need to either install them from source, or use a third-party repository.

In this article we will introduce Remi, a third-party repository that includes up-to-date versions of Apache, MySQL / MariaDB, PHP, and related software, for RPM-based distributions. It is important to note, however, that Remi is currently available (at the time of this writing – June 2017) for the following distributions:

  • CentOS 6/7
  • Red Hat Enterprise Linux 6/7
  • Fedora 23/24/25/26

With that in mind, let’s begin.

Installing the Remi Repository in CentOS, RHEL and Fedora

Before we can actually install Remi, we need to enable the EPEL repository first. In Fedora it should be enabled by default, but in CentOS and RHEL 7 you will need to do:

For RHEL 7 only:

For Fedora 23/24/25/26, do:

By default, Remi is not enabled. To change this temporarily when you need it, you can do:

where package represents the package you want to install.
If you want to enable Remi permanently, edit /etc/yum.repos.d/remi.repo and replace

A Closer Look at this Remi Repository

If you decided to enable the repository permanently as suggested earlier, it should be listed when you run:

As you can see in the following image, another repository named remi-safe is available as well:

List Yum Repositories

This repository provides extensions that are either deprecated (but still used in legacy applications), under work-in-process, or that do not comply with Fedora’s policies.

Now let’s search the newly added repositories for PHP-related packages as an example:

Please note that packages in Remi have the same name as in the official repositories. Consider, for example, php:

List PHP Packages

If you need to install PHP 5.4, make sure to enable the right repository and disable the other.

To install the latest stable version of PHP (7.1), you can do:

Similarly, to install latest version of LAMP Stack, do:

Summary

In this article we have explain how to enable and use Remi, a third-party repository that provides the latest versions of components of the LAMP stack and related software.

The official website provides a configuration wizard that can be very useful to set it up in other RPM-based distributions.

As always, don’t hesitate to let us know if you have questions or comments about this article. Just drop us a line using the form below and we will respond as soon as possible.

При запуске этих команд получаю ошибку:
Can not be installed with remi repo

Наверное, из-за вот этого:
remi-php56 Remi’s PHP 5.6 RPM repository for Enterprise Linux 7 — x 440
remi-safe Safe Remi’s RPM repository for Enterprise Linux 7 — x86_

Плохо разбираюсь в серверах.
Подскажите что делать?
Может надо какието другие версии php56 и safe установить? Где инструкцию посмотреть как?

  • Вопрос задан 03 авг.
  • 101 просмотр

я нуб в этом.
centos стоит изначально — значит так и оставлю.

подскажите, пожалуйста, как удалить remi репозиторий? и надо ли что ставить вместо него и какими командами?

This article will gu >how to install and enable REMI (by Remi Collect) repository (repo) on your CentOS server. And that’s including CentOS 7.x, CentOS 6.x and CentOS 5.x but you can also apply the steps on RHEL, Scientific Linux or Fedora. Before we proceed, it is better to firstly get to know what is Remi repo?

What is Remi Repository?

  • packages Remi also maintains in Fedora
  • backports of packages available in Fedora development version
  • some packages incompatible with Fedora policy
  • some packages in progress before being submitted to Fedora repository
  • (nearly) vanilla versions
  • the repo is quite away from backporting fixes policy of Enterprise Linux.

Get it? Still hard to understand? In much simpler way, Remi repository is a free repository prov > , then you can get it via Remi repo.

Remi repo is versy stable, free and popular. So do not hesitate to add the repo into your server’s repo list and here’s how you can get it done. Important notice: you should and have to use REMI repository along with EPEL repository. Otherwise you may end up with dependency problem in many cases.

How to install REMI repo

Step 1 – Login to your server as root or as a user with root privilege (sudo) via your favorite SSH client like Putty, Terminal, BitVisa, etc.

Step 2 – Now download the .rpm file using wget command. Make sure you download the correct version for your CentOS version:

Step 3 – Finally, you can install it using RPM command:

Step 4 – Now you have to also verify that the REMI repository is already installed successfully and ready to use:

How to enable and use REMI repo

The easy and instant way can be done using this command:

Replace the [command] part with one of these:

– install
– update
– check-update
– upgrade
– remove or erase
– list
– provides or whatprovides
– search
– info
– clean
– shell
– resolvedep
– localinstall
– localupdate
– deplist

or, alternatively you can also enable Remi repo using these steps:

Step 1 – Edit the remi.repo file using your favorite text editor like vi or Nano:

Step 2 – Find the line enabled = 0 and change it to 1 to enable REMI repository:

Step 3 – Now save that file and close it. In Nano it is Control+O then Control+X.

Step 4 – Then issue the yum repolist command again to double check it:

Step 5 – You can now use usual yum command to install, update or delete any package.

Оцените статью