Revisión de Clonar un sistema - o: Cómo hacer una copia de los paquetes instalados de un ordenador a otro de Dom, 03/30/2025 - 03:19

La revisión le permite rastrear las diferencias que hay entre distintas versiones de una entrada.

Para configurar un nuevo sistema Trisquel con las mismas aplicaciones que un sistema Trisquel existente, no es necesario seleccionar manualmente la misma lista de paquetes ni descargarlos de nuevo. Este manual explica cómo ahorrar tiempo y ancho de banda. De hecho, no es específico de Trisquel: se aplica a cualquier derivado de Debian donde esté (o pueda estar) instalado el Gestor de Paquetes Synaptic.

On the system to clone, to export the list of packages installed:

  1. launch the "Synaptic Package Manager" (in the "System Settings") and enter your password;
  2. click on "Save Markings" in the "File" menu;
  3. choose where to save the list of installed packages and a name for that file;
  4. click, at the bottom of the window, the box that says "Save full state, not only changes" and, finally, the "Save" button.

That file must now end up on the new system, where Trisquel was freshly installed. To do so, you can use a removable device (such as a USB key), SSH (an SSH server must then be installed on one of the two systems) or any other mean.

Many, if not all, the DEB packages that relate to this list are in the "/var/cache/apt" directory of the system to clone. There is no need to download them again: the "/var/cache/apt" directory can be copied to the analog directory in the fresh installation. However, if the two systems have different architectures, then only the /var/cache/apt/archives/*_all.deb files should be copied (architecture-dependent packages will be downloaded from Trisquel's repository). Also, if some packages come from external repositories (e.g., PPAs), the content of the "/etc/apt" directory needs to be copied to the analog directory in the fresh installation.

Again, all this can be achieved through a (large-enough) removable device or through SSH or... Administrative rights are required to write in "/var/cache/apt" or in "/etc/apt". In a terminal, 'sudo' grants them ('sudo cp' if the files are on a removable device, 'sudo scp' from a remote terminal).

Finally, to actually install the packages on the fresh Trisquel:

  1. launch the "Synaptic Package Manager" (in the "System Settings") and enter your password;
  2. click on "Read Markings..." in the "File" menu;
  3. open the list of packages you have transfered;
  4. click the "Apply" button and confirm.

To copy user files (e.g., the personal configuration for the applications, i.e., the hidden files and directories in the home folder, whose names start with a dot), any mean can be employed. However, one should regularly backup user files, e.g., using Back In Time in the "System Settings". The files can then be restored from the backup onto the fresh install. A warning may be displayed to indicate that the system is different from the one used to backup.

Revisiones

03/30/2025 - 03:19
Carlos segura