How can I get a content-listing of a 7z-archive under Linux?

9

1

This answer and this one suggest p7zip to work with 7zip-archives under Linux. I can see option for compressing and decompressing. But how can I get a content-listing of an archive, without decompressing it?

Antwortgenossenschaft

Posted 2011-11-29T16:25:36.743

Reputation: 930

Answers

10

7z l archive.7z

lists the content

Source: 7z --help

choroba

Posted 2011-11-29T16:25:36.743

Reputation: 14 741

The p7zip package does not have an executable called 7z. – Dennis – 2011-11-29T17:06:59.657

1Oh, I see. It comes from p7zip-full. – choroba – 2011-11-29T17:48:52.037

4

The executable p7zip of the package p7zip does not have this function.

If you install p7zip-full, you can use the executable 7z which does.

7z -h shows you the basic syntax.

Dennis

Posted 2011-11-29T16:25:36.743

Reputation: 42 934