1.安裝

sudo yum install yum-utils

2.範例:

    (1)啟用 /etc/yum.repos.d/ 中 Docker套件庫

         sudo yum-config-manager --enable docker-ce-edge

        啟用後就可以執行 sudo yum install docker-ce 安裝Docker

    (2)停用 /etc/yum.repos.d/ 中 DOCKER套件庫

         sudo yum-config-manager --disable docker-ce-edge

    (3)啟用 /etc/yum.repos.d/remi-php72.repo

        sudo yum-config-manager --enable remi-php72

        啟用後就可以執行 sudo yum install php72

參考資料 :

https://linux.die.net/man/1/yum-utils

http://yum.baseurl.org/wiki/YumUtils

https://wiki.centos.org/zh-tw/TipsAndTricks/YumAndRPM

arrow
arrow
    文章標籤
    CENTOS yum-utils
    全站熱搜

    K 發表在 痞客邦 留言(0) 人氣()