-
Notifications
You must be signed in to change notification settings - Fork 81
docs(snapcraft): Issue #7: apt/deb - snap comparison #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Owslla
wants to merge
8
commits into
canonical:main
Choose a base branch
from
Owslla:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
927053a
first draft of table with basic intro
Owslla af77606
Adjusted formatting
Owslla 5a81cb1
minor edit to emphasis
Owslla 5eeefd0
Reduced details in introduction
Owslla 3bab138
Merge remote-tracking branch 'refs/remotes/origin/main'
Owslla 38acc46
Further edits to the Intro for flow.
Owslla ae62815
Updated Metadata under Builder/Maintainer
Owslla f6c5da7
Merge branch 'canonical:main' into main
Owslla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# APT/deb - snap Packaging Comparison | ||
|
||
These tables provide a comparison between the APT/deb and snap package management approaches, highlighting key differences and considerations for developers, maintainers, and end-users. | ||
|
||
| **Feature** | **APT/deb Package Management** | **snap Package Management** | | ||
|---|---|---| | ||
| **Platform Support** | Debian-based systems | Cross-distribution (Ubuntu, Fedora, etc.) | | ||
| **Package Format** | .deb files | .snap files | | ||
| **Dependency Handling** | Requires manual dependency management | Bundles dependencies within the package | | ||
| **Security** | Standard Linux permissions | Sandboxing, AppArmor, Seccomp | | ||
| **Updates** | Manual updates via package managers (APT) | Automatic updates | | ||
| **Rollback** | Requires manual reinstallation of previous versions | Built-in rollback to previous versions via `snap revert` | | ||
| **Installation** | `apt install <deb name>` | `snap install <snap name>` | | ||
| **Package Management Tools** | **APT** (`apt`, `dpkg`, `aptitude`) | **SNAP** (`snap`, `snapd`) | | ||
| **Isolation** | No isolation by default | Sandboxed environment | | ||
| **Channels** | Not applicable | Stable, candidate, beta, edge | | ||
| **User Data Storage** | Managed by the package itself or user configurations | Separate data storage within confined space | | ||
| **Package Distribution** | Centralized repositories (e.g., Debian archives) | Centralized via Snap Store | | ||
| **Development Considerations** | Follow Debian packaging guidelines, ensure compatibility | Self-contained, fewer dependency issues | | ||
| **End-User Experience** | Familiar to Linux users, requires manual handling | Simplifies installation and updates, user-friendly | | ||
|
||
## **Package Builder/Maintainer Considerations** | ||
|
||
| **Feature** | **APT/deb Package Management** | **snap Package Management** | | ||
|---|---|---| | ||
| **Build Tools** | `dpkg-deb`, `debuild`, `lintian` | `snapcraft` | | ||
| **Metadata** | Control files, postinst, prerm scripts | `snapcraft.yaml`, confinement settings | | ||
| **Dependencies Management** | Specified in control file, manually resolved | Bundled within the snap | | ||
| **Testing and Validation** | Manual testing, deb helper tools | Snapcraft tools, automated testing | | ||
| **Distribution Process** | Upload to Debian repositories | Upload to Snap Store | | ||
| **Maintenance Effort** | Requires ongoing updates and dependency checks | Built-in dependency handling | | ||
|
||
## **End-User Experience** | ||
|
||
| **Feature** | **APT/deb Package Management** | **snap Package Management** | | ||
|---|---|---| | ||
| **Ease of Installation** | Requires knowledge of APT commands | Requires knowledge of snap commands | | ||
| **Software Updates** | Manual intervention required | Automatic updates | | ||
| **System Resources** | Lower overhead, uses existing system libraries | Higher overhead, bundles all dependencies | | ||
| **Security and Isolation** | Standard Linux security model | Enhanced security with sandboxing | | ||
| **Usability** | Familiar to traditional Linux users | More user-friendly, especially for beginners | | ||
| **Version Management** | Can be complex, involves manual intervention | Rollback and version management integration | |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.