EHEL安裝linux包的issue

來源:互聯網
上載者:User


相關係列:

linux下jdk的安裝

linux下ant的安裝

linux下redis的安裝

linux下svn的安裝

linux下nginx的安裝

linux下graphviz的安裝

linux下doxygen的安裝

graphviz

一。配置

1.以root使用者登入,在/etc/yum.repos.d/下建立 graphviz-rhel.repo檔案,內容如下:

Java代碼  
  1. [graphviz-stable]  
  2. name=Graphviz - RHEL $releasever - $basearch  
  3. baseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el$releasever/$basearch/os/  
  4. enabled=1  
  5. gpgcheck=0  
  6.   
  7. [graphviz-stable-source]  
  8. name=Graphviz - RHEL $releasever - Source  
  9. baseurl=http://www.graphviz.org/pub/graphviz/stable/SRPMS/  
  10. enabled=0  
  11. gpgcheck=0  
  12.   
  13. [graphviz-stable-debuginfo]   
  14. name=Graphviz - RHEL - Debug   
  15. baseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el$releasever/$basearch/debug/  
  16. enabled=0   
  17. gpgcheck=0   
  18.   
  19. [graphviz-snapshot]  
  20. name=Graphviz - RHEL $releasever - $basearch  
  21. baseurl=http://www.graphviz.org/pub/graphviz/development/redhat/el$releasever/$basearch/os/  
  22. enabled=0  
  23. gpgcheck=0  
  24.   
  25. [graphviz-snapshot-source]  
  26. name=Graphviz - RHEL $releasever - Source  
  27. baseurl=http://www.graphviz.org/pub/graphviz/development/SRPMS/  
  28. enabled=0  
  29. gpgcheck=0  
  30.   
  31. [graphviz-snapshot-debuginfo]   
  32. name=Graphviz - RHEL - Debug   
  33. baseurl=http://www.graphviz.org/pub/graphviz/development/redhat/el$releasever/$basearch/debug/  
  34. enabled=0   
  35. gpgcheck=0   
[graphviz-stable]name=Graphviz - RHEL $releasever - $basearchbaseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el$releasever/$basearch/os/enabled=1gpgcheck=0[graphviz-stable-source]name=Graphviz - RHEL $releasever - Sourcebaseurl=http://www.graphviz.org/pub/graphviz/stable/SRPMS/enabled=0gpgcheck=0[graphviz-stable-debuginfo] name=Graphviz - RHEL - Debug baseurl=http://www.graphviz.org/pub/graphviz/stable/redhat/el$releasever/$basearch/debug/enabled=0 gpgcheck=0 [graphviz-snapshot]name=Graphviz - RHEL $releasever - $basearchbaseurl=http://www.graphviz.org/pub/graphviz/development/redhat/el$releasever/$basearch/os/enabled=0gpgcheck=0[graphviz-snapshot-source]name=Graphviz - RHEL $releasever - Sourcebaseurl=http://www.graphviz.org/pub/graphviz/development/SRPMS/enabled=0gpgcheck=0[graphviz-snapshot-debuginfo] name=Graphviz - RHEL - Debug baseurl=http://www.graphviz.org/pub/graphviz/development/redhat/el$releasever/$basearch/debug/enabled=0 gpgcheck=0 

2.在/etc/yum.repos.d/下有一個rhel-debuginfo.repo檔案,編輯它,將gpgcheck=1修改為gpgcheck=0。

如果不修改,在執行安裝是會出現如下提示:
GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found
這是因為GPGkey檢測出錯
將yum升級設定檔裡的gpgcheck的值改為0,即表示不檢查GPG Key

二。安裝

使用yum自動安裝,任意路徑下執行如下命令:

      yum install 'graphviz' --skip-broken

      出現提示時,輸入“y”。

--skip-broken:跳過錯誤依賴,不加這個參數會提示安裝包依賴錯誤,因為這裡並不需要其它的安裝包,所以跳過即可。

三。測試

任意路徑下執行:which dot

Java代碼  
  1. [root@localhost yum.repos.d]# which dot  
  2. /usr/bin/dot  
[root@localhost yum.repos.d]# which dot/usr/bin/dot 

ok,這樣就安裝完成了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.