You can do very similar, but if it's a gui app, or has specific system dependencies there will be issues to work around.
You can do very similar, but if it's a gui app, or has specific system dependencies there will be issues to work around.