Přenos instalace (nainstalovaných balíků, dpkg, apt), klonování na další počítač

dpkg -l vypise seznam nainstalovanych i pripadne smazanych, ktere maji jeste config soubory


dpkg --get-selections > baliky
sudo apt-get install --reinstall `cat baliky`
prvy prikaz ulozi zoznam vsetkych nainstalovanych balikov do „baliky“
druhy prikaz nam nainstaluje zoznam vsetkych balikov zo suboru „baliky“

alebo moznost prenest na iny stroj aj stiahnute baliky:
Prekopirujeme alebo ulozime na CD stiahnute baliky z adresara:

Kód: [Vybrat]

/var/cache/apt/archivesA potom zadame:

Kód: [Vybrat]

dpkg --set-selections baliky


— nebo —

dpkg --get-selections > nainstalovane-baliky.txt

dpkg --set-selections < nainstalovane-baliky.txt

Poté apt-get dselect-upgrade nainstaluje všechny balíky v nainstalovane-baliky.txt


— další —

Provided by: apt-dater_1.0.2+git20151216-1_amd64 bug


       apt-dater - terminal-based remote package update manager


       apt-dater [[-(c config|v|[n]r)]]


       This manual page documents briefly the apt-dater command.

       apt-dater is a program to manage package updats on a large number of remote hosts using


       apt-dater accepts the following command parameters:

       -c config
           Use alternative config file. Default is $XDG_CONFIG_HOME/apt-dater/apt-dater.xml.

           Show apt-dater version and copyright statement.

           Refresh hosts and create XML report on stdout. apt-dater must be compiled with
           XMLREPORT feature.

           Prevent hosts to be refreshed before create XML report (useful for cronjobs which do
           not have access to SSH key(s)).


           The maintainer's name (i.e. used by debtrack). If not set, the GECOS entry for the
           current user will be used. This environment variable could be forwarded to remote
           hosts with the ssh(1) SendEnv+AcceptEnv options.


           The configuration file of apt-dater

           Contains all hosts you would like to manage


       apt-dater.xml(5), apt-get(1), debtrack, ssh(1), XDG Base Directory Specification[1].


       Thomas Liske <liske@ibh.de>

       Andre Ellguth

       Copyright © 2008-2014 IBH IT-Service GmbH [https://www.ibh.de/]


1. XDG Base Directory Specification

--- další ----

tmux is capable of connecting to multiple machines and running commands simultaneously. Connect to each host in a pane and use the ‚synchronize-panes’ window option to send each pane the same keyboard input simultaneously.

The command looks like:

:setw synchronize-panes

Following is a complete example, let’s create a window with 3 panes, each logged into a different server:

$ tmux new -s 'update packages' 'ssh admin@host1' \; split-window -h 'ssh admin@host2' \; split-window -h 'ssh admin@host3' \; select-layout even-horizontal

Once you have logged into the servers being upgraded, on the tmux prompt (C-b :), enter ‚setw synchronize-panes’

Synchronize-panes option

Now everything you type will be input to all panes

Synced Panes

Note: As mentioned in another post, tools like ‚pssh‘ and ‚csshX‘ may be better suited for this purpose.

Přenos instalace (nainstalovaných balíků, dpkg, apt), klonování na další počítač