確立原則: 保持系統簡潔&輕量
我該去哪裡找好用的套件?
Pacman套件管理系統
套件庫
for 64bit computers to run Windows apps from playonlinux or other wine-based apps, [multilib] is required
選擇最快的鏡像站: reflector
首先安裝reflector:
# sudo pacman -S reflector
然後使用reflector來找出最快的鏡像, 站並儲存檔案:
# sudo reflector -c "Taiwan" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
改用axel讓pacman以多線程下載套件
首先安裝axel:
# sudo pacman -S axel
編輯/etc/pacman.conf:
# sudo nano -w /etc/pacman.conf
找到[options]章節,可能看起來類似這樣:
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
在XferCommand那邊加入一行 (前面不要有#):
XferCommand = /usr/bin/axel -n 5 -a -o %o %u
按下Ctrl+X,然後Y存檔離開
搜尋套件
# pacman -S "套件名稱/關鍵字"
安裝套件
# sudo pacman -S "套件名稱"
最佳化pacman
# sudo pacman-optimize
定期系統瘦身: 移除多餘套件 (Remove orphaned packages)
# sudo pacman -Rns $(pacman -Qtdq)