libsolv

Library for solving packages and reading repositories.

Latest version: 0.7.41

Add to xmake.lua

add_requires("libsolv 0.7.41")

Learn how to add and link packages with Xmake →

Information

License
BSD-3-Clause
Recipe updated
2026-10-31T07:37:35.000Z

Platforms

  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • msys: i386, x86_64
  • mingw: i386, x86_64, arm, arm64
  • windows: x86, x64, arm, arm64, arm64ec
  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
  • harmony: armeabi-v7a, arm64-v8a, x86, x86_64
  • cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
  • wasm: wasm32, wasm64
  • iphoneos: arm64, x86_64
  • macosx: x86_64, arm64

Options

ARCHLINUX
Building for Archlinux. · Type: boolean · Default: false
DEBIAN
Building for Debian. · Type: boolean · Default: false
FEDORA
Building for Fedora. · Type: boolean · Default: false
HAIKU
Building for Haiku. · Type: boolean · Default: false
MAGEIA
Building for Mageia. · Type: boolean · Default: false
MANDRIVA
Building for Mandriva. · Type: boolean · Default: false
SUSE
Building for SUSE. · Type: boolean · Default: false
apk
Build with apk package/repository support. · Type: boolean · Default: false
appdata
Build with AppStream appdata support. · Type: boolean · Default: false
archrepo
Build with archlinux repository support. · Type: boolean · Default: false
bzip2_compression
Build with bzip2 compression support. · Type: boolean · Default: false
comps
Build with fedora comps support. · Type: boolean · Default: false
conda
Build with conda dependency support. · Type: boolean · Default: false
cookieopen
Enable the use of stdio cookie opens. · Type: boolean · Default: true
cudfrepo
Build with cudf repository support. · Type: boolean · Default: false
debian
Build with debian package/repository support. · Type: boolean · Default: false
haiku
Build with Haiku package support. · Type: boolean · Default: false
helixrepo
Build with helix repository support. · Type: boolean · Default: false
libxml2
Build with libxml2 instead of libexpat. · Type: boolean · Default: false
lzma_compression
Build with lzma/xz compression support. · Type: boolean · Default: false
mdkrepo
Build with mandriva/mageia repository support. · Type: boolean · Default: false
multi_semantics
Build with support for multiple distribution types. · Type: boolean · Default: false
pubkey
Build with pubkey support. · Type: boolean · Default: false
rpm5
Enabling RPM 5 support. · Type: boolean · Default: false
rpmdb
Build with rpm database support. · Type: boolean · Default: false
rpmdb_bdb
Use BerkeleyDB to access the rpm database. · Type: boolean · Default: false
rpmdb_byrpmheader
Build with rpmdb Header support. · Type: boolean · Default: false
rpmdb_librpm
Use librpm to access the rpm database. · Type: boolean · Default: false
rpmmd
Build with rpmmd repository support. · Type: boolean · Default: false
rpmpkg
Build with rpm package support. · Type: boolean · Default: false
rpmpkg_librpm
Use librpm to access rpm header information. · Type: boolean · Default: false
suserepo
Build with suse repository support. · Type: boolean · Default: false
tools
Build tools. · Type: boolean · Default: false
zchunk_compression
Build with zchunk compression support. · Type: boolean · Default: false
zstd_compression
Build with zstd compression support. · Type: boolean · Default: false

Versions

  • 0.7.34
  • 0.7.35
  • 0.7.36
  • 0.7.37
  • 0.7.39
  • 0.7.41

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "libsolv 0.7.41"

show info

xrepo info "libsolv"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("libsolv 0.7.41")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libsolv")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "libsolv 0.7.41" shell