Installing ps2pdf command-line program in Android I just bought a Nexus 7 2013. It's very good and I'd like to use it to (in case of emergency) edit some of my latex documents using TexPortal.

Some latex documents of mine get compiled properly only by Latex and not by PDFLatex.
As a result, I get a valid .ps file.

I'd like to install somehow ps2pdf (or even better, ps2pdf13) by some tool like, e.g., apt-get. And use some terminal emulator to run it.

Is this possible without rooting the device?
No, even though Android is based on the Linux kernel, programs for GNU/Linux need to be ported to the Android user-space environment. They usually require some source code changes, and to be compiled linking against the appropriate runtime libraries. You can find some command-line programs that have already been ported to Android on open-source sites like GitHub, but there's nothing like APT.

The closest thing to an APT repository is F-droid, but that's mainly for GUI apps: it's an alternative to Google Play for downloading open-source apps. I've already searched there and there's nothing like ps2pdf.