Dpkg: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:Linux ==Missing key id NO_PUBKEY== <source lang=bash> # apt-key adv --keyserver keyserver.ubuntu.com --recv <keyid> </source>“) |
No edit summary |
||
Line 4: | Line 4: | ||
<source lang=bash> | <source lang=bash> | ||
# apt-key adv --keyserver keyserver.ubuntu.com --recv <keyid> | # apt-key adv --keyserver keyserver.ubuntu.com --recv <keyid> | ||
</source> | |||
==Packages from a specific source== | |||
===Prequisite: dctrl-tools=== | |||
<source lang=bash> | |||
sudo apt-get install dctrl-tools | |||
</source> | |||
===Show packages=== | |||
For example all PPA packages | |||
<source lang=bash> | |||
sudo grep-dctrl -sPackage . /var/lib/apt/lists/ppa*_Packages | |||
</source> | |||
==From where is my package installed?== | |||
<source lang=bash> | |||
sudo apt-cache policy <package> | |||
</source> | |||
==Does my file match the checksum from the package?== | |||
If you fear you are hacked verify your binaries! | |||
===Prequisite: debsums=== | |||
<source lang=bash> | |||
sudo apt-get install debsums | |||
</source> | |||
===Verify packages=== | |||
<source lang=bash> | |||
$ sudo debsums unhide.rb | |||
/usr/bin/unhide.rb OK | |||
/usr/share/doc/unhide.rb/changelog.Debian.gz OK | |||
/usr/share/doc/unhide.rb/copyright OK | |||
/usr/share/lintian/overrides/unhide.rb OK | |||
/usr/share/man/man8/unhide.rb.8.gz OK | |||
</source> | </source> |
Revision as of 15:58, 25 February 2016
Missing key id NO_PUBKEY
# apt-key adv --keyserver keyserver.ubuntu.com --recv <keyid>
Packages from a specific source
Prequisite: dctrl-tools
sudo apt-get install dctrl-tools
Show packages
For example all PPA packages
sudo grep-dctrl -sPackage . /var/lib/apt/lists/ppa*_Packages
From where is my package installed?
sudo apt-cache policy <package>
Does my file match the checksum from the package?
If you fear you are hacked verify your binaries!
Prequisite: debsums
sudo apt-get install debsums
Verify packages
$ sudo debsums unhide.rb
/usr/bin/unhide.rb OK
/usr/share/doc/unhide.rb/changelog.Debian.gz OK
/usr/share/doc/unhide.rb/copyright OK
/usr/share/lintian/overrides/unhide.rb OK
/usr/share/man/man8/unhide.rb.8.gz OK