Skip to content

Instantly share code, notes, and snippets.

@iangow
Last active May 2, 2016 15:25
Show Gist options
  • Save iangow/94b4200cd859c6d4a5c6f6071108e2c3 to your computer and use it in GitHub Desktop.
Save iangow/94b4200cd859c6d4a5c6f6071108e2c3 to your computer and use it in GitHub Desktop.
Install texlive packages on remote computer on this one
ssh -C hackintosh '/opt/local/bin/port installed | grep texlive' | \
perl -ne '$_ =~ s/^\s+([^\s]*).*?$/\1/; print "$_";' | \
xargs sudo port install
@iangow
Copy link
Author

iangow commented May 2, 2016

  • First line gets list of programs installed on hackintosh.
  • Second line strips out everything but the package name.
  • Third line installs the packages locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment