issue222:opinion
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| issue222:opinion [2025/11/02 18:57] – créée d52fr | issue222:opinion [2025/11/04 08:48] (Version actuelle) – d52fr | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | As a storage space pauper and metered internet user, I hate Snap packages (Flatpaks too!). However, there is something to be said for a self-contained application, | + | **As a storage space pauper and metered internet user, I hate Snap packages (Flatpaks too!). However, there is something to be said for a self-contained application, |
| - | The reason I use Ubuntu instead of Fedora is that I was stuck in dependency hell as a young lad, when Fedora 1 launched, when all I wanted to do was play a mp3 file. This (dependency) hell is a real problem for package maintainers, | + | The reason I use Ubuntu instead of Fedora is that I was stuck in dependency hell as a young lad, when Fedora 1 launched, when all I wanted to do was play a mp3 file. This (dependency) hell is a real problem for package maintainers, |
| - | The way that works is that Snaps isolate applications in lightweight containers giving them just enough access while enabling updating individual applications without impacting the system. Supposedly, the Snap Store ‘reviews publisher verification, | + | Avec mon espace de stockage réduit et mon forfait internet limité, je déteste les paquets Snap (et les Flatpaks aussi !). Cependant, il faut reconnaître l' |
| + | |||
| + | Si j' | ||
| + | |||
| + | |||
| + | **The way that works is that Snaps isolate applications in lightweight containers giving them just enough access while enabling updating individual applications without impacting the system. Supposedly, the Snap Store ‘reviews publisher verification, | ||
| Whether you love or hate them, let’s talk about how to handle them. | Whether you love or hate them, let’s talk about how to handle them. | ||
| Ligne 15: | Ligne 20: | ||
| Verified publishers get a green check mark. | Verified publishers get a green check mark. | ||
| - | Installation works just as you’d expect, with the “install” keyword. | + | Installation works just as you’d expect, with the “install” keyword.** |
| - | Example: | + | Le principe est simple : les Snaps isolent les applications dans des conteneurs légers, leur accordant juste assez d’accès et permettant la mise à jour individuelle des applications sans impacter le système. Le Snap Store est censé « vérifier les éditeurs, effectuer des contrôles de code, des analyses de vulnérabilités et une approbation manuelle pour renforcer la sécurité ». À lui seul, ce point devrait faire pencher la balance en faveur des Snaps par rapport, par exemple, aux Flatpaks. Attention toutefois, des logiciels malveillants ont déjà circulé sur le Snap Store ! |
| + | |||
| + | Que vous les aimiez ou non, voyons comment les utiliser. | ||
| + | |||
| + | Pour effectuer une recherche, utilisez le mot-clé « find », | ||
| + | |||
| + | snap find < | ||
| + | |||
| + | Des informations utiles s’affichent, | ||
| + | |||
| + | Les éditeurs vérifiés sont signalés par une coche verte. | ||
| + | |||
| + | L’installation fonctionne comme prévu, avec le mot-clé « install ». | ||
| + | |||
| + | |||
| + | **Example: | ||
| sudo snap install enpass | sudo snap install enpass | ||
| Ligne 37: | Ligne 57: | ||
| Force strict confinement. | Force strict confinement. | ||
| - | Sometimes you may see them referred to as “modes”. I’m not going to repeat what is on the official website: https:// | + | Sometimes you may see them referred to as “modes”. I’m not going to repeat what is on the official website: https:// |
| - | I encourage everyone to go through the Snapcraft pages above, as it will be a lot more in-depth than anything I’m going to chat about. As a newbie, you don’t need to know every use case. What we will cover is probably the 80/20 case. | + | Exemple : |
| + | |||
| + | sudo snap install enpass | ||
| + | |||
| + | Mais ce n’est pas tout ! On peut aussi ajouter des options à la fin de la commande. | ||
| + | |||
| + | Les voici : | ||
| + | |||
| + | --beta | ||
| + | Installer les versions bêta | ||
| + | |||
| + | --candidate | ||
| + | Accès anticipé aux prochaines versions | ||
| + | |||
| + | --classic | ||
| + | Désactiver le confinement et donner un accès complet au système | ||
| + | |||
| + | --dangerous | ||
| + | Désactiver tous les contrôles de sécurité pendant l’installation | ||
| + | |||
| + | --edge | ||
| + | Versions nocturnes de développement | ||
| + | |||
| + | --jailmode | ||
| + | Forcer un confinement strict. | ||
| + | |||
| + | On les appelle parfois « modes ». Je ne vais pas répéter ce qui se trouve sur le site officiel : https:// | ||
| + | |||
| + | |||
| + | **I encourage everyone to go through the Snapcraft pages above, as it will be a lot more in-depth than anything I’m going to chat about. As a newbie, you don’t need to know every use case. What we will cover is probably the 80/20 case. | ||
| To see what you currently have installed, you use the “list” keyword. | To see what you currently have installed, you use the “list” keyword. | ||
| Ligne 52: | Ligne 101: | ||
| So it stands to reason that “sudo snap refresh” is all you need, but did you know that you can update a single application, | So it stands to reason that “sudo snap refresh” is all you need, but did you know that you can update a single application, | ||
| + | |||
| + | sudo snap refresh pinta** | ||
| + | |||
| + | Je vous encourage tous à consulter les pages Snapcraft ci-dessus, car elles sont beaucoup plus détaillées que tout ce que je vais aborder ici. En tant que débutant, vous n'avez pas besoin de connaître tous les cas d' | ||
| + | |||
| + | Pour voir les applications installées, | ||
| + | |||
| + | snap list | ||
| + | |||
| + | (Rien de compliqué !) | ||
| + | |||
| + | Si vous, ou le mainteneur, avez activé l'une de ces options, elle apparaîtra dans la section « Notes », | ||
| + | |||
| + | Pour mettre à jour vos snaps, utilisez « refresh » et non « update ». Si votre connexion réseau est limitée (comme la mienne), les mises à jour automatiques ne seront pas effectuées depuis l'App Center. | ||
| + | |||
| + | Il est donc logique que « sudo snap refresh » suffise. Mais saviez-vous que vous pouvez mettre à jour une application individuellement ? | ||
| sudo snap refresh pinta | sudo snap refresh pinta | ||
| - | This should give you an output of the version change. I do not have any updates to show, but the output will be in the following format: | + | |
| + | **This should give you an output of the version change. I do not have any updates to show, but the output will be in the following format: | ||
| pinta refreshed from xxxxx.xx.x to xxxxx.xx.x | pinta refreshed from xxxxx.xx.x to xxxxx.xx.x | ||
| Ligne 69: | Ligne 135: | ||
| It’s not gone, it is still there, but let’s say it interfered with the display, this now gives you the opportunity to upgrade or downgrade your display drivers and try again, thus avoiding wasting bandwidth with uninstall and re-install. Once you are done, you simply “enable” it again, the same way you disabled it. | It’s not gone, it is still there, but let’s say it interfered with the display, this now gives you the opportunity to upgrade or downgrade your display drivers and try again, thus avoiding wasting bandwidth with uninstall and re-install. Once you are done, you simply “enable” it again, the same way you disabled it. | ||
| - | Let’s say you run out of space, and your system will not run a GUI (this happened to my cousin recently). You can uninstall any snap with the “remove” keyword. Before you do, I suggest that you check to see if you have any older versions still hovering in the background. This does happen and it’s not a bad thing! | + | Let’s say you run out of space, and your system will not run a GUI (this happened to my cousin recently). You can uninstall any snap with the “remove” keyword. Before you do, I suggest that you check to see if you have any older versions still hovering in the background. This does happen and it’s not a bad thing!** |
| - | Go ahead and list all your snaps, like so: | + | Ceci devrait afficher la mise à jour de la version. Je n'ai pas de mises à jour à vous montrer, mais le résultat sera au format suivant : |
| + | |||
| + | pinta actualisé de xxxxx.xx.x à xxxxx.xx.x | ||
| + | |||
| + | Si le nouveau snap ne fonctionne pas, vous pouvez simplement copier ce numéro de version et revenir à la version précédente à l'aide de l' | ||
| + | |||
| + | sudo snap refresh pinta --channel=xxx.xx | ||
| + | |||
| + | En cas de problème grave, vous pouvez désactiver le snap avec l' | ||
| + | |||
| + | sudo snap disable pinta | ||
| + | |||
| + | Le snap n'est pas supprimé, il est toujours présent, mais supposons qu'il ait perturbé l' | ||
| + | |||
| + | Imaginons que vous manquiez d' | ||
| + | |||
| + | |||
| + | **Go ahead and list all your snaps, like so: | ||
| snap list --all | snap list --all | ||
| Ligne 83: | Ligne 166: | ||
| For any newbie, this is the basics you need to know for snap on the command-line. I don’t think I’ll go any deeper as the Ubuntu documentation is very thorough. | For any newbie, this is the basics you need to know for snap on the command-line. I don’t think I’ll go any deeper as the Ubuntu documentation is very thorough. | ||
| - | As always, mistakes to: misc@fullcirclemagazine.org | + | As always, mistakes to: misc@fullcirclemagazine.org** |
| + | |||
| + | Pour lister tous vos snaps, utilisez la commande suivante : | ||
| + | |||
| + | snap list --all | ||
| + | |||
| + | Vos fichiers de configuration Snap se trouvent dans / | ||
| + | |||
| + | La commande « snap remove --purge » devrait les supprimer, mais il arrive que certains persistent. Dans ce cas, supprimez simplement le dossier correspondant. Cependant, comme vous n’en êtes pas propriétaire, | ||
| + | |||
| + | L’avantage des commandes que je vous ai présentées ici est qu’elles sont identiques sur d’autres distributions comme Fedora ou Arch. Vous n’aurez donc qu’une seule méthode à apprendre. | ||
| + | |||
| + | Pour les débutants, voici les bases de l’utilisation de snap en ligne de commande. Je ne m’étendrai pas davantage, car la documentation Ubuntu est très complète. | ||
| + | |||
| + | Comme toujours, merci de signaler toute erreur à : misc@fullcirclemagazine.org | ||
issue222/opinion.1762106223.txt.gz · Dernière modification : 2025/11/02 18:57 de d52fr
