Skip to content

Instantly share code, notes, and snippets.

@michelep
Created June 17, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michelep/ee73e3ee028d7fe8e9ed023718d6cefa to your computer and use it in GitHub Desktop.
Save michelep/ee73e3ee028d7fe8e9ed023718d6cefa to your computer and use it in GitHub Desktop.
Replica pacchetti tra server
Elenco pacchetti installati:
# dpkg --get-selections > elenco.txt
ripulisci l'elenco:
# awk '{print $1}' elenco.txt > elenco.lst
script bash per installare i pacchetti:
#!/bin/bash
while read p; do
apt-get install -y "$p"
done <elenco.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment