Skip to content

afbjorklund/unsingularity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

unsingularity

Extract files from a Singularity/Apptainer SIF file.

Requires squashfs-tools to be installed on the host.

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)
  • -l: list only, don't extract (-ll long)
  • -m: use squashfuse, instead of unsquashfs

Mount

If you use the mount flag (-m), the filesystem is FUSE mounted.

When done with the files, use: fuserunmount (fusermount -u).

Install

sudo install unsingularity.sh /usr/local/bin/unsingularity

Examples

unsingularity alpine.sif

unsingularity -e /etc/os-release -c alpine.sif

unsingularity -ll debian.sif

About

Extract files from SIF file

Topics

Resources

Stars

Watchers

Forks

Languages