apt離線安裝套件的方法

https://www.jinnsblog.com/2020/11/linux-ubuntu-offline-install-package.html#google_vignette

1
2
3
apt-get clean #先清除不必要的檔案
apt-get install --download-only 套件名稱 #下載的套件會被儲存到/var/cache/apt/archives資料夾
sudo dpkg -i *.deb #把整個archives資料夾移動到離線的主機中必且安裝
Author

Steven

Posted on

2024-02-26

Updated on

2025-10-20

Licensed under

Comments