Ubuntu 软件包备份与清理 Posted on 2009-05-22 In 技术笔记 备份 1sudo tar cizvf backup.tar.gz /var/cache/apt/archives --exclude=/var/cache/apt/archives/partial/* --exclude=/var/cache/apt/archives/lock 清理 12sudo apt-get cleansudo rm -rf ~/.thumbnails/fail/gnome-thumbnail-factory/* 还原 12sudo apt-get update sudo tar xzvf backup.tar.gz -C /