Sadly, static libraries are being removed from almost all packages, making it very difficult to build a static version of pacman on arch itself. I've had to create a shell script that does the build in a chroot environment, which means this package a) requires root for the build phase, and b) isn't really tied to pacman 4.1.2, but builds whatever the latest version it can get out of abs is.
Search Criteria
Package Details: pacman-static 7.0.0.r3.g7736133-9
Package Actions
Git Clone URL: | https://aur.archlinux.org/pacman-static.git (read-only, click to copy) |
---|---|
Package Base: | pacman-static |
Description: | Statically-compiled pacman (to fix or install systems without libc) |
Upstream URL: | https://www.archlinux.org/pacman/ |
Licenses: | GPL-2.0-or-later |
Submitter: | mazieres |
Maintainer: | Morganamilo (andreas_baumann) |
Last Packager: | andreas_baumann |
Votes: | 57 |
Popularity: | 2.61 |
First Submitted: | 2013-01-09 02:17 (UTC) |
Last Updated: | 2024-11-23 08:26 (UTC) |
Dependencies (5)
- pacman (pacman-gitAUR)
- git (git-gitAUR, git-glAUR) (make)
- kernel-headers-musl (make)
- meson (meson-gitAUR) (make)
- musl (musl-gitAUR) (make)
Required by (0)
Sources (26)
- ca-dir.patch
- git+https://github.com/tukaani-project/xz#tag=v5.6.3
- git+https://gitlab.archlinux.org/pacman/pacman.git#tag=v7.0.0?signed
- https://curl.haxx.se/download/curl-8.11.0.tar.gz
- https://curl.haxx.se/download/curl-8.11.0.tar.gz.asc
- https://github.com/c-ares/c-ares/releases/download/v1.34.2/c-ares-1.34.2.tar.gz
- https://github.com/c-ares/c-ares/releases/download/v1.34.2/c-ares-1.34.2.tar.gz.asc
- https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.zst
- https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.zst.sig
- https://github.com/libarchive/libarchive/releases/download/v3.7.7/libarchive-3.7.7.tar.xz
- https://github.com/libarchive/libarchive/releases/download/v3.7.7/libarchive-3.7.7.tar.xz.asc
- https://github.com/nghttp2/nghttp2/releases/download/v1.64.0/nghttp2-1.64.0.tar.xz
- https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz
- https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz.asc
- https://gnupg.org/ftp/gcrypt/libassuan/libassuan-3.0.0.tar.bz2
- https://gnupg.org/ftp/gcrypt/libassuan/libassuan-3.0.0.tar.bz2.sig
- https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.51.tar.bz2
- https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.51.tar.bz2.sig
- https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
- https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz.sig
- https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.24.0.tar.bz2
- https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.24.0.tar.bz2.sig
- https://zlib.net/zlib-1.3.1.tar.gz
- https://zlib.net/zlib-1.3.1.tar.gz.asc
- openssl-3.0.7-no-atomic.patch
- pacman-revertme-makepkg-remove-libdepends-and-libprovides.patch
mazieres commented on 2013-11-11 06:18 (UTC)
mazieres commented on 2013-10-23 00:18 (UTC)
Good point, Nowaker. I've just changed the package so that most of the dependencies are now makedepends instead of depends. I left gpg2 in there for now, since it does call the executable. Maybe gpg shoudl be an optdepend, since you can actually use pacman without gpg, though it's a bad idea except in an emergency.
Nowaker commented on 2013-10-21 19:52 (UTC)
@mazieres, why does it depend on glibc or whatever if it's statically compiled? I wanted to install this package before performing the glibc and /usr/lib update, and it doesn't let me go. If it's intended "for fixing systems with corrupt libc" it shouldn't depend on anything.
mazieres commented on 2013-08-07 06:11 (UTC)
If you are running this on another system such as debian, you will need to create /var/lib/pacman/{local,sync} and possibly /var/cache/pacman/pkg, same as if you were "pacstrapping" an arch system. Alternatively you can edit your pacman.conf file to put these directories somewhere else.
<deleted-account> commented on 2013-08-01 14:10 (UTC)
I've try to run pacman-static under debian wheezy.
I can run "help" (-h) but if i use "pacman-static -Syy" it says:
error: failed to initialize alpm library (could not find or read directory)
axlrose commented on 2013-03-23 10:16 (UTC)
nice work
mazieres commented on 2013-01-09 02:35 (UTC)
If you are totally hosed, to the point that even gpg cannot run to verify signatures, but you still have a root shell, you must do the following:
# cat > /tmp/conf <<EOF
[options]
Architecture = auto
SigLevel = Never
[core]
Include = /etc/pacman.d/mirrorlist
EOF
# pacman-static --config /tmp/conf -S glibc
...
Pinned Comments
Morganamilo commented on 2022-02-20 18:30 (UTC)
There's now a custom repo and binaries again. Though only for x86_64 currently.
Custom Repo
Pre compiled binaries
https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/