Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.