Hans
Hans

Reputation: 117

View content files of .deb archive

I want to view the content of a .deb archive but I´m not able to unpack the .deb file with any pack program like 7Zip. When I try to install the file in Linux Ubuntu with dpkg-deb the system return the message "...is not a debian format archive".

How can I unpack this .deb file to get the content files?

Test.deb

Upvotes: 9

Views: 12796

Answers (3)

Jaap
Jaap

Reputation: 765

On windows you can view the contents of a .deb with 7-zip, however to fully view the contents you shouldn't use 'Open archive' from the context menu of Explorer.

You should open the 'Open archive' sub-menu and then click the '*'. This opens the archive with both the data.tar.xz and the control.tar.xz visible in the root.

Upvotes: 10

GAD3R
GAD3R

Reputation: 4625

To view the content files of .deb file use the -c option:

dpkg-deb -c file.deb

Syntax:

Usage: dpkg-deb [<option> ...] <command>

See the dpkg-deb --help.

To unpack the .deb file use -x option or -X (with verbosity):

mkdir pkg_dir
dpkg-deb -x file.deb pkg_dir/ 

To install a trusted .deb file use dpkg , apt or gdebi (need to be installed)

dpkg -i file.deb

The file command allow you to determine the file type :

file file.deb

It should print :Debian binary package

Upvotes: 7

Lev M.
Lev M.

Reputation: 6269

A deb package is an ar archive file, that contains two tar files inside. I am not sure about Windows programs, but I suspect WinRAR may be able to extract this file.

On Ubuntu, the built in archive manager can open any deb file. Just right-click it and select "open with archive manager".

If you are unable to install or open this file, it is likely the file is corrupted or incomplete.

The link you provided is not working, but the error seems clear - what you have is not a deb file, at least not a correct one.

Upvotes: 4

Related Questions