본문 바로가기

리눅스

PECL 구성에서 기본 채널 URL을 업데이트하는 방법

728x90
반응형

PECL 구성에서 기본 채널 URL을 업데이트하는 방법

PECL 구성에서 기본 채널 URL을 업데이트하려면 PEAR 명령을 사용해 PECL 채널의 URL을 수정할 수 있습니다.

PECL 설치

sudo apt install -y php-pear

PECL 채널 목록 확인

PECL 채널이 설정된 상태를 확인합니다.

pear list-channels
$ pear list-channels
Registered Channels:
====================
Channel      Alias   Summary
doc.php.net  phpdocs PHP Documentation Team
pear.php.net pear    PHP Extension and Application
                     Repository
pecl.php.net pecl    PHP Extension Community Library
__uri        __uri   Pseudo-channel for static packages

현재 등록된 모든 PEAR/PECL 채널 목록을 보여줍니다. PECL의 경우 pecl.php.net이 기본 채널로 설정되어 있어야 합니다.

PECL 기본 채널 URL 업데이트

기본 채널 URL을 업데이트합니다.

pear channel-update pecl.php.net

기본 채널 URL 확인

기본 채널 URL을 확인합니다.

pecl channel-info pecl.php.net
$ pear channel-info pecl.php.net
Channel pecl.php.net Information:
=================================
Name and Server         pecl.php.net
Alias                   pecl
Summary                 PHP Extension Community Library
Validation Package Name PEAR_Validator_PECL
Validation Package      1.0
Version
Server Capabilities
===================
Type Version/REST type Function Name/REST base
rest REST1.0           http://pecl.php.net/rest/
rest REST1.1           http://pecl.php.net/rest/
728x90

PECL 채널의 기본 URL을 HTTPS로 업데이트

기존의 URL이 HTTP라면 HTTPS로 URL을 변경할 수 있습니다.

pear channel-update https://pecl.php.net/channel.xml

기본 채널 URL 확인

채널 URL이 https://pecl.php.net으로 변경되었는지 확인합니다.

pear channel-info pecl.php.net
$ pear channel-info pecl.php.net
Channel pecl.php.net Information:
=================================
Name and Server         pecl.php.net
Alias                   pecl
Summary                 PHP Extension Community Library
Validation Package Name PEAR_Validator_PECL
Validation Package      1.0
Version
Server Capabilities
===================
Type Version/REST type Function Name/REST base
rest REST1.0           https://pecl.php.net/rest/
rest REST1.1           https://pecl.php.net/rest/

PECL 패키지 설치 확인

패키지를 설치하거나 업데이트할 수 있습니다.

sudo pecl install rdkafka

기존 채널 삭제

pecl channel-delete pecl.php.net

새 채널 추가

pecl channel-add https://pecl.php.net/channel.xml

 

PECL의 기본 채널 URL을 HTTPS로 업데이트할 수 있습니다.

 

참고URL

- pear Documentation : Using channels

 

728x90
반응형