@O.Price.Skelly: Did you figure out if it was possible to install snap on Amazon Linux 2?
Thanks for adding Jammy Jellyfish, @sparkiegeek! Sorry I missed this myself.
As a person new to Ubuntu/Linux and also someone whoâs Snap doesnât current work/open (and seeming leaves a lot of locked space that canât be removed), this guidance is little help.
How is one to reinstall this system when it doesnât work?
No instructions are given and you end up in an endless loop going between pages that are no help. Additionally the one instruction I could find, âsudo snap install snap-storeâ does not work and gives a âcommand not foundâ error.
Specific instructions should be included on how to get the system installed, not just âitâs there alreadyâ. Plus guidance on removing old packages taking up too much space should also be given somewhere.
Hello - thanks for your feedback. Could you let us know which distribution/version youâre using? Can you run the âsnapâ command at all? We do provide install instructions for Ubuntu if snap isnât currently installed (Installing snap on Ubuntu), but it doesnât sound like this has helped your situation specifically.
I donât know the version. It doesnât open anymore. I can say it was up to date with Ubuntu 22.04.1 LTS. I tried command line at it said that the snap command doesnât exist.
try apt install snapd
first ⊠seemingly you not only removed snaps but also the snapd deb (which is used as a fallback for the snap command if the snapd snap has been removed on ubuntu/debian)
Didnât work.
Impossible to reinstall because âsnapd is already the newest version (2.57.5+22.04ubuntu0.1)
â.
I donât think itâs worthwhile to go any further. Ever since I gimped Snap and deleted the bloated packages, it has stopped giving âout of disk spaceâ error in PiHole, which was the goal.
I just canât add or remove anything ever again. And thatâs OK.
Can anyone tell me which snap NextCloud install version do I need for Cloudlinux? Thanks.
Is snapd installed? Have you tried the latest/stable version?
Just tried the quick start wizard and got all set up. Thanks!
Dear Snapcraft Team,
Iâm reaching out from AlmaLinux OS Foundation!
Weâve noticed that AlmaLinux isnât included in the âDistributions without snap pre-installedâ section of âInstalling snapdâ page. Weâd like to request adding an AlmaLinux installer guide to this section to assist our users with the installation process.
Thank you for considering our request.
Best regards, Pawel Suchanecki Evangelist @ AlmaLinux.org
P.S. For your reference, an example of what we envision for the AlmaLinux guide is provided below.
AlmaLinux OS is 1:1 binary compatible with RHELÂź and pre-Stream CentOS, so snap installs the same way as it does on RHEL.
The snap packages for AlmaLinux can be found in the Extra Packages for Enterprise Linux 2 (EPEL) repository.
Enable EPEL repo
If you havenât done it yet, enable the EPEL repository for your AlmaLinux system:
sudo dnf install epel-release
sudo dnf upgrade
Install
TIP:
Before proceeding with the installation of snap, itâs important to install the kernel-modules package. This package includes SquashFS, a compressed read-only file system for Linux, which is necessary for the snap functionality.
Install the kernel-modules
, using the following command:
sudo dnf install kernel-modules
With the EPEL repository and kernel-modules added to your AlmaLinux installation, you can now install the snapd package:
sudo dnf install snapd
Set up
Next, instruct systemd to enable the unit providing the snap communication socket:
sudo systemctl enable --now snapd.socket
Finally â to enable classic snap support â create a symbolic link it requires:
sudo ln -s /var/lib/snapd/snap /snap
Last installation step
To make sure the paths for snap are updated correctly, you just need to re-login. Reboot will work too.
Congratulations, snap is now installed and fully operational!
Optional: for Desktop Users
If youâre operating on a desktop environment, consider installing the Snap Store app (Installing the Snap Store app)
Hello! Thank you for getting in touch, and providing your own instructions - thatâs really helpful! Iâll make sure we create a page and add AlmaLinux to the install instructions list.
Hello,
Thank you for considering my suggestion! Iâm glad to see that AlmaLinux will be added to the installation instructions list. If you need any further information or assistance while implementing this, or anything related to AlmaLinux in general, please feel free to reach out.
Best regards, Pawel / AlmaLinux Evangelist psuchanecki@almalinux.org
Sorry for the delay on this, but weâve just added install instructions for AlmaLinux OS (based on your own instructions, thank you!)
Theyâre published here: https://snapcraft.io/docs/installing-snap-on-almalinux
I tested them and, at least on 9.2 x86_64, I didnât need to separately install kernel-modules
for SquashFS. Is this something we should document for specific situations? Either way, the installation instructions are in a forum post thatâs freely editable (anyone is welcome to edit/contribute):
Thanks again!
I miss instructions for distributions not using systemd, esp. TinyCore (http://www.tinycorelinux.net/).
There are no such instructions since snaps heavily rely on systemd features to generate mount units, service files and other bits of the snap runtime environment dynamicallyâŠ
There is some shim code that was created for 14.04 to fake systemd on non-systemd installs that you could try to port to your desired target distro, but this is non-trivial workâŠ
Sorry to read that.
I fear that I am not knowledgeable enough for porting the code, but I would like to take a look at it and probably give it a try. Where should I look for the code?
What do you mean with âshim codeâ? Deeplâs translation was not very helpful for understanding âŠ