snapstore is a minimalist example of a "store" for snaps, based on the public API specs (https://wiki.ubuntu.com/AppStore/Interfaces/ClickPackageIndex). It allows anyone to host their own collection of snaps for installation on supported platforms.
See http://snapcraft.io for more information on creating and using snap packages.
Install python-virtualenv.
E.g. on Ubuntu 16.04:
sudo apt install python-virtualenv
Clone this repo:
git clone https://github.com/noise/snapstore.git
cd snapstore
Setup virtualenv and install dependencies:
virtualenv env
. env/bin/activate
pip install -r requirements.txt
Put snaps (named as name.snap) and metadata (named as name.meta) in files/. We've already included one sample snap (foobar25).
Run it:
python store.py
On any distribution supporting snaps (see http://snapcraft.io), install snapd (requires snapd >=2.0.6).
E.g. on Ubuntu 16.04:
sudo apt install snapd
Ensure core snap gets installed from the normal store, triggered on first snap install.
sudo snap install hello
Edit /etc/environment, add your store URL, e.g.:
SNAPPY_FORCE_CPI_URL=http://localhost:5000/api/v1/
Then bounce snapd:
sudo service snapd restart
Supports snap find , snap install
snap find foobar25
sudo snap install foobar25
- It's just an example, probably lots!