LINUX
2020.12.05 / 19:42

Redhat7 ¿¡¼­ ´ÙÀ½ repository»ç¿ëÇϱâ - daum ¿¬°á

Ãß¼®µ¹ÀÌ
Ãßõ ¼ö 140

Redhat7 ¿¡¼­ daum repository»ç¿ëÇϱâ



RedhatÀº µî·ÏÇÏÁö ¾ÊÀ¸¸é  yumÀ» »ç¿ëÇÒ ¼ö ¾ø´Ù.

±âº» repo¸¦ ´ÙÀ½(daum)À¸·Î ¹Ù²ã¼­ »ç¿ë°¡´ÉÇÏ´Ù.



*¾Æ·¡ °æ·Î¿¡ ±âº» redhat.repo¸¦ Áö¿ì°Å³ª À̸§º¯°æ


[root@localhost yum.repos.d]# mv redhat.repo redhat.repo.org

[root@localhost yum.repos.d]# ls -sla

ÇÕ°è 16

 0 drwxr-xr-x.   2 root root   29  2¿ù  7 09:21 .

12 drwxr-xr-x. 144 root root 8192  2¿ù  7 09:12 ..

 4 -rw-r--r--.   1 root root  358  2¿ù  8  2018 redhat.repo.org



*daum.repo »ý¼º

[root@localhost yum.repos.d]# vi daum.repo

[base]

name=CentOS-$releasever - Base

baseurl=http://ftp.daum.net/centos/7/os/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7


[updates]

name=CentOS-$releasever - Updates

baseurl=http://ftp.daum.net/centos/7/updates/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7


[extras]

name=CentOS-$releasever - Extras

baseurl=http://ftp.daum.net/centos/7/extras/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7


[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://ftp.daum.net/centos/7/centosplus/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7



*±âÁ¸ repo clean

[root@localhost yum.repos.d]# yum clean all

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Cleaning repos: base centosplus extras updates

Cleaning up everything

Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos



*repo °»½Å

[root@localhost yum.repos.d]# yum repolist all

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

base                                                                                                  | 3.6 kB  00:00:00

centosplus                                                                                            | 3.4 kB  00:00:00

extras                                                                                                | 3.4 kB  00:00:00

updates                                                                                               | 3.4 kB  00:00:00

(1/5): base/x86_64/group_gz                                                                           | 166 kB  00:00:00

(2/5): extras/x86_64/primary_db                                                                       | 156 kB  00:00:00

(3/5): centosplus/x86_64/primary_db                                                                   | 1.2 MB  00:00:01

(4/5): base/x86_64/primary_db                                                                         | 6.0 MB  00:00:01

(5/5): updates/x86_64/primary_db                                                                      | 2.4 MB  00:00:02

repo id                                            repo name                                                  status

base/x86_64                                        CentOS-7Server - Base                                      enabled: 10,019

centosplus/x86_64                                  CentOS-7Server - Plus                                      enabled:     37

extras/x86_64                                      CentOS-7Server - Extras                                    enabled:    322

updates/x86_64                                     CentOS-7Server - Updates                                   enabled:  1,057

repolist: 11,435

[root@localhost yum.repos.d]#



*µî·ÏÇÏÁö ¾ÊÀº ¼­¹ö¶ó°í ¶á´Ù.
subscription-manager¸¦ »ç¿ëÇÏÁö ¾Êµµ·Ï º¯°æÇØÁØ´Ù.


/etc/yum/pluginconf.d# vi subscription-manager.conf

[main]

enabled=0


/etc/yum/pluginconf.d# yum repolist all

Loaded plugins: langpacks, product-id, search-disabled-repos

repo id                                            repo name                                                  status

base/x86_64                                        CentOS-7Server - Base                                      enabled: 10,019

centosplus/x86_64                                  CentOS-7Server - Plus                                      enabled:     37

extras/x86_64                                      CentOS-7Server - Extras                                    enabled:    322

updates/x86_64                                     CentOS-7Server - Updates                                   enabled:  1,057

repolist: 11,435




*Ãß°¡·Î ÇʼöÀÎ EPEL ¸®Æ÷ÁöÅ͸®µµ Ãß°¡ÇØÁÖÀÚ.


RHEL7 EPEL ¸®Æ÷ÁöÅ͸®

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


RHEL6 EPEL ¸®Æ÷ÁöÅ͸®

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm


RHEL5 EPEL ¸®Æ÷ÁöÅ͸®

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm