在ubuntu系統(tǒng)下如何進行軟件備份?
我們每個人都有過重裝系統(tǒng)的經歷,在安裝好系統(tǒng)之后,如何才能快速重裝原來那些自己所鐘愛的軟件?這時備份就顯得很重要了。下面就教大家如何在ubuntu系統(tǒng)下進行軟件備份的方法,具體內容如下所述。
1,備份列表
nixCraft 提供了一個有用的技巧。它的原理是在系統(tǒng)完好無損的時候,就做好已安裝軟件的備份工作。然后,在重裝系統(tǒng)后,就可以利用先前備份的文檔來執(zhí)行還原操作了。下面是相關的實施步驟(以 Debian 為例)
執(zhí)行備份操作:dpkg --get-selections > installed-software.log,這將當前系統(tǒng)中已安裝的軟件保存到 installed-software.log 中。
在還原時使用 dpkg --set-selections < installed-software.log 導入軟件列表,再利用 dselect 工具安裝軟件。
2,備份軟件安裝包
備份/var/cache/apt/archives/下的.deb
如 :
- sudo cp /var/cache/apt/archives/*.deb /media/hdx/cache/
 
重裝后:
- cd /media/xxx/ your backup dir
 - sudo cp *.deb /var/cache/apt/archives/
 - sudo apt-get update
 
總結:
希望本文介紹的在ubuntu系統(tǒng)下進行軟件備份的方法能夠對讀者有所幫助,更多有關linux系統(tǒng)的知識還有待于讀者去探索和學習。















 
 
 
 
 
 
 