Search code examples
linuxubuntuportable-applications

Does Linux support standalone package / software's that not require installation?


In my work, I have got a Windows Laptop with limited access, I can't install anything because admin privilege required but lucky this website https://portableapps.com/apps have many apps that can be run without installation and admin not required even there is a portable MySQL ,Apache server etc.

Now I have got access to an old Ubuntu server without internet and no sudo privilage with the below details:-

NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"

I want to run the screen command but it's not installed and I have no privilege plus it's not connected to the internet . is there a way to run this package screen in a portable/standalone way same like Windows OS? is there a way to convert any Linux package to standalone package?


Solution

  • No, package managers like ubuntu's apt require internet access to pull the source and package info from mirrors, and install the package. Ubuntu does also have Personal Package Archive (PPA), but those will also require internet access for at least the first step of downloading the source and package info. You would also need to have root privileges to use these package managers and PPAs.

    The only real option is to download the source of the command from gnu on another machine with internet access (your windows machine would be fine), store on an external drive, move to the linux machine, and and build the tool from source code you get there.

    Once built you can then add the binary to a location you have access to which is on the PATH, or add the binary location to the PATH.