https://github.com/afbjorklund/unsingularity
Extract files from SIF file
https://github.com/afbjorklund/unsingularity
apptainer singularity
Last synced: 2 months ago
JSON representation
Extract files from SIF file
- Host: GitHub
- URL: https://github.com/afbjorklund/unsingularity
- Owner: afbjorklund
- Created: 2022-12-14T15:30:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T17:30:59.000Z (7 months ago)
- Last Synced: 2025-03-20T02:07:08.040Z (7 months ago)
- Topics: apptainer, singularity
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unsingularity
Extract files from a Singularity/Apptainer SIF file.
Requires squashfs-tools to be installed on the host.
Also requires either of `siftool` or `apptainer`.
## Usage
`unsingularity [-h] [-c] [-d DIRECTORY] [-e EXTRACT] [-l] [sif]...`
* `-c`: cat files after extracting
* `-e`: extract only certain files
* `-d`: directory (default: `squashfs-root`)
* `-i`: inspect metadata, don't extract
* `-l`: list only, don't extract (`-ll` long)
* `-m`: use `squashfuse`, instead of `unsquashfs`
* `-n`: use `squashnfs`, instead of `squashfuse`## Mount
If you use the mount flag (`-m`), the filesystem is FUSE mounted.
When done with the files, use: `fuserunmount` (`fusermount -u`).
If you use the nfs mount flag (`-n`), it is instead NFS mounted.
When done with the files, use: `squashnfs -u` (or unmount it).
## Install
`sudo install unsingularity.sh /usr/local/bin/unsingularity`
## Examples
`unsingularity alpine.sif`
`unsingularity -e /usr/lib/os-release -c alpine.sif`
`unsingularity -ll debian.sif`