
Alma Linux 8에서 Snap 패키지 관리자를 설치하고 사용하는 방법
2022-10-17 last update
10 minutes reading linux programmingsnapd라고도 하는 Snap 패키지 관리자는 광범위한 Linux 배포 및 버전에 Snap 패키지를 설치할 수 있는 Linux의 최신 패키지 관리자입니다. Snap 패키지는 독립적이며 샌드박스 환경에서 실행됩니다. 명령줄을 통해 Snap 패키지를 설치하거나 웹사이트에서 .snap 파일로 다운로드할 수 있습니다. Snap은 범용, 교차 배포 및 종속성 없는 패키지 관리자입니다. 모든 주요 Linux 배포판에서 실행되도록 모든 종속성과 함께 패키지된 스냅 애플리케이션.
이 튜토리얼에서는 Alma Linux 8에 Snap Package Manager를 설치하고 사용하는 방법을 보여 드리겠습니다.
Alma Linux 8을 실행하는 서버.
루트 암호는 서버에 구성됩니다.
기본적으로 Snapd 패키지는 Alma Linux 8 기본 리포지토리에 포함되어 있지 않습니다. 따라서 EPEL 저장소에서 설치해야 합니다.
먼저 다음 명령을 사용하여 EPEL 저장소를 설치합니다.
VLC 패키지에 대한 정보를 확인하려면 다음 명령을 실행하십시오.
Snap의 최근 변경 사항을 보려면 다음 명령을 실행하십시오.
이 게시물에서는 Alma Linux 8에서 Snap 패키지 관리자를 설치하고 사용하는 방법을 설명했습니다. 이제 시스템에서 Snap 패키지를 쉽게 설치하고 관리할 수 있습니다. 궁금한 점이 있으면 언제든지 문의해 주세요.
이 튜토리얼에서는 Alma Linux 8에 Snap Package Manager를 설치하고 사용하는 방법을 보여 드리겠습니다.
전제 조건
Snapd 설치
기본적으로 Snapd 패키지는 Alma Linux 8 기본 리포지토리에 포함되어 있지 않습니다. 따라서 EPEL 저장소에서 설치해야 합니다.
먼저 다음 명령을 사용하여 EPEL 저장소를 설치합니다.
dnf install epel-release -y
그런 다음 다음 명령을 실행하여 시스템에 Snapd 패키지를 설치합니다.dnf install snapd -y
Snapd가 설치되면 다음 명령을 사용하여 Snapd 서비스를 시작하고 활성화합니다.(adsbygoogle=window.adsbygoogle||[]).push({});systemctl enable --now snapd.socket
systemctl start --now snapd.socket
다음 명령을 사용하여 Snapd 서비스의 상태를 확인할 수 있습니다.systemctl status snapd.socket
다음과 같은 결과를 얻을 수 있습니다.? snapd.socket - Socket activation for snappy daemon Loaded: loaded (/usr/lib/systemd/system/snapd.socket; enabled; vendor preset: disabled) Active: active (listening) since Mon 2022-02-28 10:30:21 UTC; 10s ago Listen: /run/snapd.socket (Stream) /run/snapd-snap.socket (Stream) Tasks: 0 (limit: 11412) Memory: 4.0K CGroup: /system.slice/snapd.socket Feb 28 10:30:21 linux systemd[1]: Starting Socket activation for snappy daemon. Feb 28 10:30:21 linux systemd[1]: Listening on Socket activation for snappy daemon.
To check the Snapd version, run the following command:
snap version
다음과 같은 결과를 얻을 수 있습니다.snap 2.54.3-1.el8 snapd 2.54.3-1.el8 series 16 rocky 8.5 kernel 4.18.0-348.12.2.el8_5.x86_64
Snap으로 패키지 찾기
Snap provides an easier way to find your desired package from the Snap repository.
To list all Snap packages available on the Snap repository, run the following command:
snap find
다음 출력에 모든 Snap 패키지 목록이 표시됩니다.Name Version Publisher Notes Summary spotify 1.1.77.643.g3c4c6fc6 spotify* - Music for everyone gimp 2.10.28 snapcrafters - GNU Image Manipulation Program 1password 8.5.0 1password* - 1Password - Password Manager and Secure Wallet code f80445ac vscode* classic Code editing. Redefined. vlc 3.0.16 videolan* - The ultimate media player okular 20.12.3 kde* - Document Viewer onlyoffice-desktopeditors 7.0.0 onlyoffice* - A comprehensive office suite for editing documents, spreadsheets and presentations liveforspeed S3-6T mmtrt - Live for Speed (LFS) is a online racing simulator. bomber 21.12.2 kde* - Arcade Bombing Game thunderbird 91.6.1 canonical* - Mozilla Thunderbird email application phpstorm 2021.3.2 jetbrains* classic PhpStorm signal-desktop 5.30.0 snapcrafters - Signal Desktop climate-trail 2.1 merlijn-sebrechts - Surviving The Climate Apocalypse gitkraken 8.2.1 gitkraken* classic For repo management, in-app code editing & issue tracking. krita 4.4.5 krita* - Digital Painting, Creative Freedom vidcutter 6.0.5.1 ozmartian - the simplest + fastest media cutter and joiner scummvm 2.5.1 snapcrafters - ScummVM is a program which allows you to run numerous classic graphical point-and-click adventure games and role-playing games bitwarden 1.31.3 bitwarden* - Bitwarden pinta 2.0.2 james-carroll - Painting made simple! typora 1.1.5 typora - A minimal Markdown reading and writing app picard 2.7.3 metabrainz-apps - Picard is the official MusicBrainz audio tagger jami 20211222.1.3e5b149 sfljami - Jami, a secure, distributed communication software and SIP client brave 1.35.103 brave - Browse faster and safer with Brave. konversation 21.12.1 kde* - IRC client omniawrite 1.3.2 torsten.dittmann - OmniaWrite - A text editor engineered for creative writing. opera 84.0.4316.21 opera-software* - Fast, secure, easy-to-use browser plexmediaserver 1.25.6.5577-c8bd13540 plexinc* - Your media on all your devices. powershell 7.2.1 microsoft-powershell* classic PowerShell for every system!
To find a specific package, run the following command:
snap find vlc
그러면 아래와 같이 VLC 패키지 및 기타 유사한 패키지를 찾을 수 있습니다.Name Version Publisher Notes Summary vlc 3.0.16 videolan* - The ultimate media player mjpg-streamer 2.0 ogra - UVC webcam streaming tool audio-recorder 3.0.5+rev1432+pkg-7b07 brlin - A free audio-recorder for Linux (EXTREMELY BUGGY) dav1d 0.9.2 videolan* - AV1 decoder from VideoLAN gridplayer 0.2.1 vzhd1701 - Play videos side-by-side orion-desktop 0.0.10 keshavnrj - Complete torrent client and streamer for Linux Desktop kycli 0+git.9591d6e dvlc - The command line interface to the unofficialKYC platform. peerflix v0.39.0+git1.df28e20 pmagill - Streaming torrent client for Node.js test-streamlink 1.4.1-64-g599f362e addq1eax - test-Streamlink
Snap으로 패키지 설치
To install a specific package, run the following command:
snap install vlc
그러면 VLC 패키지가 시스템에 설치됩니다.VLC 패키지에 대한 정보를 확인하려면 다음 명령을 실행하십시오.
snap info vlc
다음 정보가 표시되어야 합니다.name: vlc summary: The ultimate media player publisher: VideoLAN* store-url: https://snapcraft.io/vlc contact: https://www.videolan.org/support/ license: unset description: | VLC is the VideoLAN project's media player. Completely open source and privacy-friendly, it plays every multimedia file and streams. It notably plays MKV, MP4, MPEG, MPEG-2, MPEG-4, DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, BluRays, DVDs, VCDs, podcasts, and multimedia streams from various network sources. It supports subtitles, closed captions and is translated in numerous languages. commands: - vlc snap-id: RT9mcUhVsRYrDLG8qnvGiy26NKvv6Qkd tracking: latest/stable refresh-date: today at 10:32 UTC channels: latest/stable: 3.0.16 2021-06-28 (2344) 310MB - latest/candidate: 3.0.16 2021-06-28 (2344) 310MB - latest/beta: 3.0.17-1-2-g0cc084b032 2022-02-28 (2848) 335MB - latest/edge: 4.0.0-dev-18410-g56db9925fc 2022-02-28 (2849) 614MB - installed: 3.0.16 (2344) 310MB -
By default, Snap stores all packages in /var/lib/snapd/snaps/ directory. You can list them with the following command:
ls /var/lib/snapd/snaps/
다음 출력이 표시되어야 합니다.core18_2284.snap snapd_14978.snap vlc_2344.snap
설치 스냅 패키지 나열
To list all Snap packages installed on your system, run the following command:
snap list
다음 출력에 설치된 모든 패키지 목록이 표시됩니다.Name Version Rev Tracking Publisher Notes core18 20211215 2284 latest/stable canonical* base snapd 2.54.3 14978 latest/stable canonical* snapd vlc 3.0.16 2344 latest/stable videolan* -
Snap으로 패키지 업데이트
To update the package, run the following command:
snap refresh vlc
이렇게 하면 VLC 패키지가 최신 버전으로 업데이트됩니다.Snap의 최근 변경 사항을 보려면 다음 명령을 실행하십시오.
snap changes
다음 출력이 표시되어야 합니다.ID Status Spawn Ready Summary 1 Done today at 10:30 UTC today at 10:30 UTC Initialize system state 2 Done today at 10:31 UTC today at 10:32 UTC Install "vlc" snap 3 Done today at 10:31 UTC today at 10:31 UTC Initialize device
스냅 패키지 제거
If you want to remove a specific package from your system, run the following command:
snap remove vlc
그러면 시스템에서 VLC 패키지가 제거됩니다.결론
이 게시물에서는 Alma Linux 8에서 Snap 패키지 관리자를 설치하고 사용하는 방법을 설명했습니다. 이제 시스템에서 Snap 패키지를 쉽게 설치하고 관리할 수 있습니다. 궁금한 점이 있으면 언제든지 문의해 주세요.