#packages Articles


Backup and restore apt packages on Debian-Ubuntu

Suppose you want to install all the apt packages already installed on one server to another one. On the source machine execute the following commands to make a list of installed packages and their “states” (installed manually or automatically): sudo dpkg --get-selections > pkgs_selection.lst sudo apt-mark showauto > …