Skip to content

Instantly share code, notes, and snippets.

@mrroot5
Last active May 30, 2019 10:16
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 mrroot5/28c22ce7acfd57abeed0ac0d7af33c62 to your computer and use it in GitHub Desktop.
Save mrroot5/28c22ce7acfd57abeed0ac0d7af33c62 to your computer and use it in GitHub Desktop.
Instalar requirements.apt desde la terminal usando apt-get

Introducción

Queremos instalar todos los requirements de un fichero llamado requirements.apt.

Método 1: tr

sudo apt-get -y install $(tr '\n' ' ' < requirements.apt)
# -y: instalacion automatica sin preguntas

Método 2: cat

sudo apt-get -y install $(cat requirements.apt)
# -y: instalacion automatica sin preguntas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment