Ubuntu – Download only with snap


I've looked through the man pages and searched on AU, but I seem to be unable to find a way to download only a snap package. I want to download only for install on another computer. Is it possible, and if so, how?

Best Answer

  • First you have to install the "basic" snap ubuntu-core, on which all snap applications are running. Open a terminal and execute this command : sudo snap install ubuntu-core
    Now you are able to install "normal" snap applications, here an example to install nmap:
    sudo snap install nmap ... you can update this snap with : sudo snap refresh nmap

    Update with instructions how to download a snap package and install it on an offline computer : First you have to find out the download location of the snap package you want to download. In the example nmapabove it is -> https://launchpad.net/~joetalbott/+snap/nmap/+build/1021.
    To install it execute : sudo snap install /path-to-the-downloaded-file/filename.snap

    Update with an explanation addressing your question how to find various snap packages :
    Unlike the way installing software from repositories, snap packages are designed to work independently on supported Linux systems, so all dependencies are included in each snap.
    As a consequence there is not a single snap store where all the snap packages are located.

    Everyone can create snap packages and choose the location where they are stored. What you want is possible but not the way it is supposed to work, in these days nearly everybody has an internet connection and in the case of Ubuntu you should use the standard way, just as you do when installing or updating applications from the repositories ... otherwise you have to search.

    Here is one location where you can find many snaps to download manually : uApp Explorer.com
    As snap packages become more popular over time, many developers offer them as a download alternative to .deb files - this is a current example from the notes application : get-notes.com

  • Related Question