Them cac kho Repository tren Centos 7

8 - Thêm các kho repository để download cài đặt phần mềm trên Centos 7

Add some useful external repositories to install useful softwares.
[1] Install a plugin to add priorities to each installed repositories.

[root@dlp ~]# yum -y install yum-plugin-priorities

# set [priority=1] to official repository

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.repo

[2] Add EPEL Repository which is provided from Fedora project.

[root@dlp ~]# yum -y install epel-release

# set [priority=5]

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo

# for another way, change to [enabled=0] and use it only when needed

[root@dlp ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo

# if [enabled=0], input a command to use the repository

[root@dlp ~]# yum --enablerepo=epel install [Package]

[3] Add RPMforge Repository which provides many useful packages.

[root@dlp ~]# yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

# set [priority=10]

[root@dlp ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/rpmforge.repo

# for another way, change to [enabled=0] and use it only when needed

[root@dlp ~]# sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge.repo

# if [enabled=0], input a command to use the repository

[root@dlp ~]# yum --enablerepo=rpmforge install [Package]
  • 0 Người dùng thấy hướng dẫn này hữu ích
Hướng dẫn này có hữu ích?

Những hướng dẫn liên quan

Quan ly va Cau hinh cac dich vu bang systemctl tren Centos 7

6-Cấu hình các dịch vụ trên Centos 7[1] It's possible to make sure services' status like follows....

Tao User tren Centos 7

[1] Tạo 1 tài khoản có tên "cent" : [root@dlp ~]# useradd cent [root@dlp ~]# passwd cent...

Huong dan cai dat CentOS 7

[1] CentOS 7.x tương thích với Red Hat Enterprise Linux 7.x. CentOS 7 được phát hành vào...

Cap nhat he thong Centos 7

7 - Cập nhật hệ thống Centos 7[1] Sau khi cài đặt xong hệ điều hành CentOS 7, bạn nên cập nhật...

Cau hinh Firewall va SELinux tren Centos 7

FireWall [1] Nếu Firewall trên máy chủ là không cần thiết (ví dụ đã có tường lửa khác đang chạy...