티스토리 뷰

___리눅스

[ubuntu] snap package 사용 방법

변군 변군이글루 2020. 7. 26. 09:49

snap package 사용 방법

 

명령어(snap)

$ snap
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.

Usage: snap <command> [<options>...]

Commands can be classified as follows:

         Basics: find, info, install, list, remove
        ...more: refresh, revert, switch, disable, enable
        History: changes, tasks, abort, watch
        Daemons: services, start, stop, restart, logs
       Commands: alias, aliases, unalias, prefer
  Configuration: get, set, unset, wait
        Account: login, logout, whoami
    Permissions: connections, interface, connect, disconnect
      Snapshots: saved, save, check-snapshot, restore, forget
          Other: version, warnings, okay, ack, known, model, create-cohort
    Development: run, pack, try, download, prepare-image

 

버전 정보(snap version)

$ snap version
snap    2.45.2
snapd   2.45.2
series  16
ubuntu  18.04
kernel  4.15.0-112-generic

 

리스트(snap list)

$ snap list
Name     Version    Rev   Tracking       Publisher   Notes
aws-cli  1.15.58    130   latest/stable  aws✓        classic
core     16-2.45.2  9665  latest/stable  canonical✓  core

 

검색(snap search)

$ snap search docker
Name                    Version              Publisher              Notes    Summary
docker                  19.03.11             canonical✓             -        Docker container runtime
kata-containers         1.11.1               katacontainers✓        classic  Lightweight virtual machines that seamlessly plug into the containers ecosystem
etcd                    3.4.5                canonical✓             -        Resilient key-value store by CoreOS
convos                  4.22.0               jhthorsen              -        Multiuser chat application that runs in your web browser
stubb                   0.3.1                circleci✓              -        A Docker utility by CircleCI.

 

정보(snap info)

$ snap info docker
name:      docker
summary:   Docker container runtime
publisher: Canonical✓
store-url: https://snapcraft.io/docker
contact:   snappy-devel@lists.ubuntu.com
license:   (MIT AND Apache-2.0 AND GPL-2.0)
description: |
  Build and run container images with Docker.
  
  This build requires all files that Docker uses, such as dockerfiles, to be in $HOME. Keep files
  there for 'docker build', 'docker save' and 'docker load'.
  
  This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed
  or published by Docker, Inc.
  
  Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United
  States and/or other countries. Docker, Inc. and other parties may also have trademark rights in
  other terms used herein.
commands:
  - docker.compose
  - docker
  - docker.help
  - docker.machine
services:
  docker.dockerd: simple, enabled, active
snap-id:      sLCsFAO8PKM5Z0fAKNszUOX0YASjQfeZ
tracking:     latest/stable
refresh-date: yesterday at 02:39 UTC
channels:
  latest/stable:    19.03.11     2020-06-09 (471) 131MB -
  latest/candidate: 19.03.11     2020-06-09 (471) 131MB -
  latest/beta:      19.03.11     2020-06-08 (471) 131MB -
  latest/edge:      19.03.11     2020-06-25 (483) 132MB -
  17.03/stable:     17.03.2-ce-1 2017-07-20 (159)  42MB -
  17.03/candidate:  17.03.2-ce-1 2017-06-30 (159)  42MB -
  17.03/beta:       ↑                                   
  17.03/edge:       17.03.2-ce-1 2017-06-30 (159)  42MB -
installed:          19.03.11                (471) 131MB -

 

설치(snap install)

$ snap install ntpserver
ntpserver 0.1 from cargonza installed

 

업그레이드(snap refresh)

$ snap refresh ntpserver
snap "ntpserver" has no updates available

 

삭제(snap remove)

$ snap remove docker
docker removed
댓글
댓글쓰기 폼