Extracting hab package contents without installation

There are some times, deep dark times, situations of extreme desperation where the void peers into you and you are incapable of escaping it’s inky beckoning call. In those times you may find yourself in need of a tool. A tool to fight the darkness.

Take this, it’s dangerous to go alone:
tail -n +6 </path/to/hart/file.hart> | xzcat | tar tf -

What this does is takes the hab package, ignores the signature and extracts the hab package contents to $PWD. Giving you all of the content without explicitly installing via the hab binary.

What info does this give you about a package?

Well… NONE OF YOUR BUSINESS.

And by that I mean I’ve updated the forum post to reflect this information.

2 Likes