Go to file
dengbo 413726bab1 fix: fix duplicate runtime dependencies
This change addresses an issue where runtime dependencies were not
being correctly deduplicated, leading to multiple instances of the
same runtime being included in the application environment. This was
happening because the `reference` field of `runtime` and `base` was
directly assigned with `*localRuntime` or `*localBase`, which did not
include repo information. The fix involves wrapping `localRuntime` and
`localBase` with `ReferenceWithRepo` and adding repo information. This
ensures that the package manager can accurately identify and reuse
existing runtimes. The `semanticMatching = true` option is added to
`getSatisfiedPackage` to ensure the version matching works.

Influence:
1. Test installing an application with shared runtime dependencies.
2. Verify that only one instance of each runtime is present in the
environment.
3. Check that the application functions correctly with the deduplicated
runtimes.
4. Ensure semantic version matching works as expected.

fix: 修复重复的运行时依赖

此更改解决了运行时依赖项未被正确去重的问题,导致应用程序环境中包含同一
运行时的多个实例。发生这种情况是因为 `runtime` 和 `base` 的 `reference`
字段直接使用 `*localRuntime` 或 `*localBase` 进行赋值,未包含仓库信息。
此修复包括使用 `ReferenceWithRepo` 包装 `localRuntime` 和 `localBase`
并添加仓库信息。这确保了包管理器可以准确地识别和重用现有的运行时。
`semanticMatching = true` 选项已添加到 `getSatisfiedPackage`,以确保版本
匹配正常工作。

Influence:
1. 测试安装具有共享运行时依赖项的应用程序。
2. 验证环境中仅存在每个运行时的单个实例。
3. 检查应用程序在使用去重后的运行时时是否正常运行。
4. 确保语义版本匹配按预期工作。
2025-08-21 21:00:30 +08:00
.github/workflows refactor: improve code organization in layer packager 2025-08-14 09:43:33 +08:00
.obs feat: update obs workflows 2024-12-19 16:31:45 +08:00
.tx chore: add transifex config file 2025-04-11 09:33:03 +08:00
LICENSES fix: remove vendor qdbusxml2cpp 2025-07-22 14:21:12 +08:00
api feat: add mirror enable/disable functionality for repos 2025-07-10 19:28:36 +08:00
apps feat: add new fmt based logging system 2025-08-05 16:28:53 +08:00
cmake fix: remove vendor qdbusxml2cpp 2025-07-22 14:21:12 +08:00
cmake.external chore: remove docopt 2024-11-01 10:56:18 +08:00
cmake.fix build: backport to UOS v20 2024-04-17 20:55:14 +08:00
docs docs: Update installation instructions 2025-08-21 11:39:31 +08:00
external feat: add new fmt based logging system 2025-08-05 16:28:53 +08:00
libs fix: fix duplicate runtime dependencies 2025-08-21 21:00:30 +08:00
misc chore: use CMAKE_INSTALL_FULL_SYSCONFDIR 2025-08-14 14:24:19 +08:00
po chore: Translate po/en_US.po in es (#1340) 2025-08-11 09:43:40 +08:00
tools refactor: improve UAB file handling and cleanup 2025-08-12 17:00:55 +08:00
.clang-format chore: update .clang-format 2025-05-14 11:35:50 +08:00
.cmake-format.py build: refact build process 2023-10-11 13:35:51 +08:00
.deepsource.toml chore: update deepsource config 2025-08-04 10:57:01 +08:00
.editorconfig feat: support module split files 2024-10-15 14:18:40 +08:00
.gitignore feat: use ll-box in ll-builder-utils when export UAB 2025-04-28 15:13:11 +08:00
.gitmodules fix: correct gitsubmodule 2024-03-05 20:48:05 +08:00
BUILD.md docs: add build dependencies to build.md 2025-03-11 21:22:32 +08:00
BUILD.zh_CN.md docs: add build dependencies to build.md 2025-03-11 21:22:32 +08:00
CMakeLists.txt refactor: improve code organization in layer packager 2025-08-14 09:43:33 +08:00
CMakePresets.json feat: optimize layer search logic 2025-08-21 10:39:36 +08:00
LICENSE docs: update license 2022-12-06 15:43:14 +08:00
README.md docs: Update linyaps and linyaps-pica installation documentation 2025-08-20 09:46:07 +08:00
README.zh_CN.md style: format code with ClangFormat and Prettier 2025-08-21 09:50:58 +08:00
REUSE.toml feat: Add Linyaps application icon 2025-08-11 17:24:06 +08:00
configure.h.in fix: the context menu of the file manager displays abnormally 2025-07-02 09:47:35 +08:00
linglong.yaml style: format code with ClangFormat and Prettier 2025-07-18 15:13:19 +08:00
release.bash chore: add missing SPDX comment 2025-03-24 14:21:02 +08:00

README.md

Linyaps: Next-Gen Universal Package Manager for Linux

📦 Introduction

English | 简体中文

Contributors Latest Release Powered by Linyaps Build Status DeepSource

GitHub Stars GitHub Forks Code Size GitHub Issues

Packaging status

Linyaps (Linyaps Is Not Yet Another Packaging System) is a cross-distribution Linux package format developed and open-sourced by the Linyaps community. It implements application packaging, management, and distribution through independent sandbox containers, aiming to replace traditional package managers like deb and rpm. Linyaps ensures Linux software runs with better compatibility, security, and efficiency.

Highlights

  • Innovative Partial Runtime Design: Based on a standardized sandbox Runtime, applications can be built once and run across all Linux distributions. Multiple Runtime versions coexist with shared files to reduce redundancy. Shared resources are reused during startup via dynamic libraries, significantly improving speed and avoiding dependency conflicts.
  • Non-Privileged Sandbox with Dual-Layer Isolation: Runs without root privileges by default. Utilizes kernel Namespace isolation (process/filesystem/network) to create a secure sandbox. Atomic incremental updates and version rollbacks are provided via OSTree repositories, resulting in lower resource consumption compared to full sandbox solutions.

🎏 Progress

  • Supported Distributions: deepin, UOS, openEuler, Ubuntu, Debian, openKylin, Anolis OS. More distributions are under adaptation. Contributions are welcome.
  • CPU Architectures: X86, ARM64, LoongArch. Future support for RISC-V and others.

⚙️ Installation

Installation instructions for supported distributions:

deepin 23

Install:

echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/Deepin_23/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list
sudo apt update
sudo apt install linglong-bin

Fedora 41

sudo dnf config-manager addrepo --from-repofile "https://ci.deepin.com/repo/obs/linglong:/CI:/release/Fedora_41/linglong%3ACI%3Arelease.repo"
sudo dnf update
sudo dnf install linglong-bin

Ubuntu 24.04

echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/xUbuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list
sudo apt update
sudo apt install linglong-bin

Debian 12

echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/Debian_12/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list
sudo apt update
sudo apt install linglong-bin

openEuler 23.09

sudo dnf config-manager --add-repo "https://ci.deepin.com/repo/obs/linglong:/CI:/release/openEuler_23.09/linglong%3ACI%3Arelease.repo"
sudo sh -c "echo gpgcheck=0 >> /etc/yum.repos.d/linglong%3ACI%3Arelease.repo"
sudo dnf update
sudo dnf install linglong-bin

uos 1070

echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/uos_1070/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list
sudo apt update
sudo apt install linglong-bin

AnolisOS 8

sudo dnf config-manager addrepo --from-repofile "https://ci.deepin.com/repo/obs/linglong:/CI:/release/AnolisOS_8/linglong%3ACI%3Arelease.repo"
sudo dnf update
sudo dnf install linglong-bin

openkylin 2.0

echo "deb [trusted=yes] https://ci.deepin.com/repo/obs/linglong:/CI:/release/openkylin_2.0/ ./" | sudo tee /etc/apt/sources.list.d/linglong.list
sudo apt update
sudo apt install linglong-bin

🚀 Quick Start

ll-cli install cn.org.linyaps.demo
ll-cli run cn.org.linyaps.demo

🎯 Motivation

Why develop Linyaps when Snap, Flatpak, and AppImage already exist?

  • In 2017, we evaluated Flatpak and built 100+ packages, but discontinued due to large application size, excessive disk usage, and slow security fixes.
  • Snap has compatibility issues outside Ubuntu and lacks an open ecosystem.
  • AppImage offers portability but lacks centralized repository management and robust sandboxing, compromising security.

After extensive experimentation, we designed Linyaps to address these shortcomings. Key advantages over alternatives include:

  • Partial Runtime: Smaller footprint and faster startup via shared resources.
  • Rootless Sandbox: Enhanced security without requiring root privileges.

Benchmark results demonstrate Linyaps' performance superiority:

Test # Linyaps Frames Linyaps Time (ms) Flatpak Frames Flatpak Time (ms) AppImage Frames AppImage Time (ms) Snap Frames Snap Time (ms)
1 9 149.4 14 232.4 16 265.6 42 697.2
2 9 149.4 13 215.8 17 282.2 41 680.6
3 8 132.8 9 149.4 15 249 40 664
4 9 149.4 13 215.8 15 249 41 680.6
5 8 132.8 14 232.4 16 265.6 42 697.2
6 8 132.8 13 215.8 15 249 39 664
7 9 149.4 12 199.2 15 249 39 647.4
8 8 132.8 14 232.4 16 265.6 40 680.6
Avg 8.5 141.1 12.8 213.7 15.6 261.6 40.5 676.2

📨 Getting Help

For assistance, use the following channels:

📝 Documentation

Command-line Tools

Build Tools

Package Conversion Tools

deb Conversion

AppImage Conversion

Flatpak Conversion

Debugging

FAQs

📖 Learning Resources

Tutorial Series

Explore more tutorials at Linyaps Official Website.

⚒️ Contribution

We welcome issue reports and contributions. See the Build Guide for instructions on building Linyaps from source.

Start discussions on GitHub Discussions.

⚖️ License

Licensed under LGPL-3.0-or-later.

👥 Community

Acknowledgment to all contributors! Visit our Community Page.

Contributors

If Linyaps helps you, consider giving it a Star or Fork.