# CentOS 離線安裝套件 ## Enable Cache - (可上網的主機) /etc/yum.conf 加入下面內容 ```conf= sslverify=false keepcache=1 ``` - cache預設在/var/cache/yum or /var/cache/dnf - 要特別指定快取目錄, 在 /etc/yum.conf 中加入: ```conf= cachedir=/package-cache ``` - 再把cachedir的內容複製到目的離線主機的cachedir中使用
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up