📌  相关文章
📜  如何克隆我的 linux 以便所有已安装的软件包 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:31.734000             🧑  作者: Mango

代码示例1
sudo apt-get install apt-clone
apt-clone clone foo

Copy foo.apt-clone.tar.gz to the new machine and run

sudo apt-get install apt-clone
sudo apt-clone restore foo.apt-clone.tar.gz


apt-clone may work between related distributions, 
e.g. Debian and Ubuntu. Use restore-new-distro instead of restore in that case. 
If that fails, use the manual method with dpkg --get-selections and apt-mark, 
and fiddle with the package list until apt is satisfied.