Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the apt-key command of linux to manage the keys of the APT software package

Shulou Source: shulou.com Published: 2022-06-02 20:09:13 09月22日 Update

Today, I will talk to you about using linux's apt-key command to manage the key of APT software package, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

The apt-key command is used to manage package keys in the Debian Linux system. Each released Debian package is authenticated by the key, and the apt-key command is used to manage the Debian package key.

Syntax format: apt-key [parameters]

Common parameters:

Add filename loads the new key from the file to the trusted key del kid removes the specified key from the trusted key export keyed outputs the specified key to the standard output device exportall exports all keys to the standard output device list displays the trusted key finger displays the fingerprint of the trusted key adv passes advanced features update updates the key through the key package

Reference example

List key that have been saved in the system:

[root@linuxcool ~] # apt-key list

Add the downloaded key to the local trusted database:

[root@linuxcool ~] # apt-key add keyname

Remove key from the local trusted database:

[root@linuxcool ~] # apt-key del keyname

Update the local trusted database and delete the expired and useless key:

[root@linuxcool ~] # apt-key update after reading the above, do you have any further understanding of using the apt-key command of linux to manage the keys of APT software packages? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Tags: Keys software packages commands management output content data databases parameters standards systems devices updates advanced instances commonly used fingerprints files more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Shulou Technology Xiaomi macOS