Menu
Is free
registration
home  /  Internet/ Connect repo epel, rpmforge and other repositories in CentOS. Connect repo epel, rpmforge and other repositories on CentOS Installing remi repo on CentOS

Connect repo epel, rpmforge and other repositories on CentOS. Connect repo epel, rpmforge and other repositories on CentOS Installing remi repo on CentOS

    URL: slackbuilds.org Commercial: none Site type: repository ... Wikipedia

    Coordinates: 55 ° 44'03.4 ″ s. NS. 37 ° 35'17.26 "in. d. / 55.734278 ° N NS. 37.588128 ° E etc ... Wikipedia

    A service list of articles created to coordinate work on the development of the topic. This warning is not set on informational article lists and glossaries ... Wikipedia

    A service list of articles created to coordinate work on the development of the topic. This warning did not install ... Wikipedia

    Socialized medicine- is a term used to describe a system for providing medical and hospital care for all at a nominal cost by means of government regulation of health services and subsidies derived from taxation. It is used primarily and usually pejoratively in ... ... Wikipedia

    Newcastle United Season 2011/12 Coach ... Wikipedia

    Crown jewels- The Imperial State Crown of the United Kingdom Crown jewels are jewels or artifacts of the reigning royal family of their respective country. They belong to monarchs and are passed to the next sovereign to symbolize the right to rule. They may…… Wikipedia

    Web search engine- Search engine redirects here. For other uses, see Search engine (disambiguation). The three most widely used web search engines and their approximate share as of late 2010. A web search engine is designed to search for information on the Wo… Wikipedia

For what reason it is convenient to use Yandex services, in terms of speed for Russian providers, I already wrote in the article Here we will talk about the repositories for the operating room ubuntu systems... Namely, because the mirror is located on Yandex servers. And unlike the standard ubuntu repositories are located on servers that are clearly not located in Russia, then using the Yandex repositories, we will get higher speed than when using standard repositories. Convinced?

In order to change the standard repositories for the Ubuntu OS, we need to open the file where the list of repositories is stored and change it

sudo nano /etc/apt/sources.list

We delete all content and write the following ( example for ubuntu version 10.04 !!!)

deb http://mirror.yandex.ru/ubuntu/ lucid main contrib non-free universe

deb-src http://mirror.yandex.ru/ubuntu/ lucid main contrib non-free

sudo aptitude update

If for any reason you need original file with a list of standard repositories, then please, here it is

# deb cdrom: / lucid main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://ru.archive.ubuntu.com/ubuntu/ lucid main restricted

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the

## distribution.

deb http://ru.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb http://ru.archive.ubuntu.com/ubuntu/ lucid universe

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid universe

deb http://ru.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team, and may not be under a free license. Please satisfy yourself as to

## your rights to use the software. Also, please note that software in

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb http://ru.archive.ubuntu.com/ubuntu/ lucid multiverse

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid multiverse

deb http://ru.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the "backports"

## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

# deb http://ru.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

# deb-src http://ru.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical "s

## "partner" repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

deb http://archive.canonical.com/ubuntu lucid partner

# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted

deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted

deb http://security.ubuntu.com/ubuntu lucid-security universe

deb-src http://security.ubuntu.com/ubuntu lucid-security universe

deb http://security.ubuntu.com/ubuntu lucid-security multiverse

deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

Using repositories mirror.yandex.ru updating your files will be much faster than using standard repositories. Good luck!

Mobile stands could be used to organize a Linux OS study. Write on such a stand the address of the Yandex mirror for updates so that it is accessible and visual for the trainees.

For any server, you need to be able to quickly get up-to-date fresh software... Installing repositories epel, rpmforge, etc. repo for CentOS solves the issue of obtaining rpm packages for subsequent configuration and updating of the server functionality. So let's pay attention to this issue and understand the intricacies that are present here, as in any other issue.

If you have a desire to learn how to find and exploit vulnerabilities in information networks, I recommend to get acquainted with online course "Workshop on Kali Linux» at OTUS. The course is designed for those who have no experience in information security, for admission you need to go through.

This article is part of a single series of articles about the server.

Repositories on CentOS

First, let's explain what repositories are and what they are for. Here's what wikipedia says about this:

Repository, repository- the place where any data is stored and maintained. Most often, the data in the repository is stored in the form of files available for further distribution over the network.

There are repositories for storing programs written in one language (for example, CPAN for Perl) or targeting one platform. Many modern operating systems such as OpenSolaris, FreeBSD, and most Linux distributions have official repositories, but also allow you to install packages from elsewhere. Most of the repositories are free, however some companies provide access to their own repositories for a paid subscription.

Some time ago Linux applications came out as source code, which was then compiled on the server and received ready-made programs. Today, most applications come in the form of so-called packages. These are pre-built applications that you can immediately install and use.

In our case, the repository is a repository of packages for operating system CentOS. There is a repository from the system developer, they are called official. The set of rpm packages there is usually limited and the versions are not up-to-date. Third-party repositories are used to install additional software. They can be supported by other companies as well as by groups of enthusiasts.

CentOS packages and repositories are managed by the utility yum... Her config file located in /etc/yum.conf. This file contains a section that specifies the global settings of the program. It can also contain one or several sections, which store the settings of the repositories. Nevertheless, it is recommended to store information about repositories in the /etc/yum.repos.d/ directory in special files .repo.

The minimum content of the .repo file is as follows:

Name = repository_name baseurl = repository_url

Other crawling options that can be specified in the repo file:

Name = CentOS- $ releasever - Base mirrorlist = http: //mirrorlist.centos.org/? Release = $ releasever & arch = $ basearch & repo = os gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM- GPG-KEY-CentOS-7 #released updates name = CentOS- $ releasever - Updates mirrorlist = http: //mirrorlist.centos.org/? Release = $ releasever & arch = $ basearch & repo = updates gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7 #additional packages that may be useful name = CentOS- $ releasever - Extras mirrorlist = http: //mirrorlist.centos.org/? release = $ releasever & arch = $ basearch & repo = extras gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages name = CentOS- $ releasever - Plus mirrorlist = http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus gpgcheck = 1 enabled = 0 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7

Connecting repositories on CentOS

There are three different ways to add a repository to CentOS:

  1. By adding a section to the /etc/yum.conf file
  2. By creating a .repo file in the /etc/yum.repos.d directory
  3. By installing the rpm package with repository information

As mentioned earlier, the first method is not recommended by the developers themselves. The fastest and most convenient third way. If the rpm package for adding the repository does not exist, then the second method is used manually.

Installing epel repo on CentOS

Fully epel the repository is called Extra Packages for Enterprise Linux. This is a package repository created by the Fedora operating system team. Packages from the epel repository never conflict and do not reinstall base RHEL packages. Packages for the following operating systems are supported:

Installing the epel repository on CentOS is easiest because epel-release package included in the standard CentOS Extras repository, which is available by default. It is by far the most popular unofficial repository for CentOS.

Installing the epel repository on centos:

# yum -y install epel-release

Now if we check the folder /etc/yum.repos.d, we will see the file there epel.repo, which will contain information about the newly connected repository.

Connecting rpmforge repo on CentOS

The full name of the rpmforge repository is RepoForge... According to information from the site, this archive is no longer supported and is not recommended for installation. But personally, I have not found information about this anywhere else, including on the official website repoforge.org. This repository contains the following sets of RHEL compatible packages:

  • Servers (eg. monitoring, troubleshooting, management)
  • Desktops (eg. office, leisure, multi-media)
  • Development (eg. perl, python, ruby ​​libraries)

Installing rpmforge on centos:

  1. Install the GPG key: # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
  2. Go to the download page and copy the rpm package link for the architecture we need.
  3. Install the copied rpm package: # yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

# yum -y install http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Checking the /etc/yum.repos.d directory:

# ls -l | grep rpmforge -rw-r - r--. 1 root root 739 Jun 12 2014 mirrors-rpmforge -rw-r - r--. 1 root root 717 Jun 12 2014 mirrors-rpmforge-extras -rw-r - r--. 1 root root 728 Jun 12 2014 mirrors-rpmforge-testing -rw-r - r--. 1 root root 1128 Jun 12 2014 rpmforge.repo

Everything is fine rpmforge repository is installed.

Installing remi repo on CentOS

Les RPM de Remi repository supports latest versions MySQL and PHP (backports of Fedorov rpm). The packages in this repository must be used with care as they replace the base packages.

  1. # wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
  2. # rpm -Uvh remi-release-7 * .rpm

We check:

# cd /etc/yum.repos.d # ls -l | grep remi -rw-r - r--. 1 root root 698 Jul 23 17:54 remi-php70.repo -rw-r - r--. 1 root root 2382 Jul 23 17:54 remi.repo -rw-r - r--. 1 root root 449 Jul 23 17:54 remi-safe.repo

On the CentOS mirror, you can download distributions of all current versions, and these are versions 5, 6 and 7. The mirror can be used as sources of standard system repositories - base, updates, extras, centosplus.

You can use, which I have done many times, yandex mirror for network installation CentOS. Installation image path: http://mirror.yandex.ru/centos/7/os/x86_64/images/

On this I have everything on the topic of working with repositories. Then you can do it. If you have any comments, additions, clarifications, errors, please write about it in the comments.

Let me remind you that this article is part of a single series of articles about the server.

Mikrotik online courses

If you have a desire to learn how to work with microtic routers and become a specialist in this area, I recommend taking courses in a program based on information from the official course MikroTik Certified Network Associate... In addition to the official program, the courses will include laboratory works, in which you can test and consolidate the knowledge gained in practice. All the details on the site. The cost of training is very democratic, good opportunity to gain new knowledge in the current subject area. Features of the courses:
  • Practice oriented knowledge;
  • Real situations and tasks;
  • The best of international programs.