I want to know as much as possible about a .deb
package before I install it. There is a significant amount of metadata generated during regular package building and I know that there are also signed packages like the ones from the distribution repositories.
This is not the answer I'm looking for. Of course I can open the package with file-roller and find the build date this way, but I want to go beyond that. I think of something comparable to how you check TLS certificates in Firefox.
Key questions:
- When was the package built?
- If possible by whom or where was the package built?
- What are the dependencies? (Link to good answer for completeness.)
- Is the package signed?
- Who or what signed it?
Regarding the last point, I know about .dsc
files, though these are usually not offered on 3rd party sites. (May be we should raise awareness here so that this will change in the future.)
You can use google-chrome as an example for 3rd party packages.
Use this:
Prefer to use apt if you need them to be signed.
Normal deb files do not contain all data you need, except that you can get by
dpkg-deb --info
or look intoDEBIAN/control
file.You can have dsc files with this data, if you download from launchpad or official repositories.
Deb files are not signed by default. General recommendation is not to install deb packages from sites you do not trust.
There are no special security instruments in Debian packages.
All you should need is
Here is sample out put of a package named
hostapd_2.1-0ubuntu1.2_amd64.deb
on my PCAnd another at random called
pulseaudio_6.0-90-g75dd2-1_amd64.deb
For packages available through configured repositories, try:
apt-cache show <package-name>
You'll get a lot of metadata (Maintainer, Original Maintainer, Depends, MD5) but maybe not all you're looking for.
I want to give a GUI based desktop user friendly solution. I am using Ubuntu Mate 18.04
Double click the .deb file. It Will open in Gdebi. If it is not already installed you can install Gdebi using
sudo apt-get install gdebi
.When you Double click the .deb file, you can find the Package Name, Dependencies, Which Files it will install and where and much more.
If you decide to install the package use
Install Package