archliux下的包管理工具pacman使用方法

來源:互聯網
上載者:User

用archlinux的原因是我想找一個linux發行版裡預設的python版本是3.2的,有gentoo和archlinux,gentoo安裝太痛苦了,傷不起,感謝aa總提示我用archlinux。安裝起來還好,有點類似fbsd的感覺,還能接受。話說現在fbsd的安裝過程也很洋氣了。
 
freebsd和openbsd的最新版本的預設python都是3.2,ubuntu 12.10是3.2,但是要到今年10月份才發布。
 
pacman的FAQ https://wiki.archlinux.org/index.php/Pacman_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29
 
我總結下
 
同步包資料庫pacman -Syy 類似yum makecache
 
安裝軟體pacman -S python 加-f參數強行安裝,忽略檔案衝突
 
搜尋軟體pacman -Ss python
 
升級系統pacman -Syu 類似yum update
 
/etc/pacman.d/mirrorlist設定鏡像
 
/etc/pacman.conf設定repo 一般是core extra還有community
 
解決檔案衝突的方法,把衝突檔案改名備份,安裝後可正常使用了就刪除備份檔案
 
archlinux還有類似freebsd的ports的包管理方式,雖然我感覺更像gentoo,詳見https://wiki.archlinux.org/index.php/Arch_Build_System_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.