学习参照网上教程在容器中搭建nginx时看到apt-key命令不解,记录一下。一下是 --help中的解释。

apt-key命令解释:

apt-key add <file>          - add the key contained in <file> ('-' for stdin)

apt-key del <keyid>         - remove the key <keyid>

apt-key export <keyid>      - output the key <keyid>

apt-key exportall           - output all trusted keys

apt-key update              - update keys using the keyring package

apt-key net-update          - update keys using the network

apt-key list                - list keys

apt-key finger              - list fingerprints

apt-key adv                 - pass advanced options to gpg (download key)

apt-key adv的解释:

Commands:

 -s, --sign [file]             make a signature

     --clearsign [file]        make a clear text signature

 -b, --detach-sign             make a detached signature

 -e, --encrypt                 encrypt data

 -c, --symmetric               encryption only with symmetric cipher

 -d, --decrypt                 decrypt data (default)

     --verify                  verify a signature

     --list-keys               list keys

     --list-sigs               list keys and signatures

     --check-sigs              list and check key signatures

     --fingerprint             list keys and fingerprints

 -K, --list-secret-keys        list secret keys

     --gen-key                 generate a new key pair

     --delete-keys             remove keys from the public keyring

     --delete-secret-keys      remove keys from the secret keyring

     --sign-key                sign a key

     --lsign-key               sign a key locally

     --edit-key                sign or edit a key

     --gen-revoke              generate a revocation certificate

     --export                  export keys

     --send-keys               export keys to a key server

     --recv-keys               import keys from a key server

     --search-keys             search for keys on a key server

     --refresh-keys            update all keys from a keyserver

     --import                  import/merge keys

     --card-status             print the card status

     --card-edit               change data on a card

     --change-pin              change a card's PIN

     --update-trustdb          update the trust database

     --print-md algo [files]   print message digests

Options:

 -a, --armor                   create ascii armored output

 -r, --recipient NAME          encrypt for NAME

 -u, --local-user              use this user-id to sign or decrypt

 -z N                          set compress level N ( disables)

     --textmode                use canonical text mode

 -o, --output                  use as output file

 -v, --verbose                 verbose

 -n, --dry-run                 do not make any changes

 -i, --interactive             prompt before overwriting

     --openpgp                 use strict OpenPGP behavior

     --pgp2                    generate PGP .x compatible messages

apt-key 命令的更多相关文章

  1. Redis Key 命令

      Redis Key 命令     del key1 key2 - keyn 删除键为key1,key2-keyn,空格分隔. persist key 移除给定 key 的生存时间,将这个 key ...

  2. redis key命令

    key命令主要用于管理redis中的key del key //删除key, 不存在的key会忽略 dump key //序列化key,不存在的key返回nil exists key //判断key是 ...

  3. Ubuntu apt 常用命令

     APT(the Advanced Packaging Tool)是Ubuntu 软件包管理系统的高级界面,Ubuntu 是基于Debian的,APT由几个名字以“apt-”打头的程序组成.apt-g ...

  4. redis入门(05)redis的key命令

    一.什么是redis键命令 Redis 键(key):Redis 键命令用于管理 redis 的键. Redis 键命令的基本语法: redis 127.0.0.1:6379> COMMAND ...

  5. Redis管理key命令

    1 DEL key该命令用于在 key 存在时删除 key. 2 DUMP key 序列化给定 key ,并返回被序列化的值. 3 EXISTS key 检查给定 key 是否存在. 4 EXPIRE ...

  6. redis:key命令(二)

    设置一个key:set name hello 获取一个key的值:get name 查看所有的key:keys * 查看key是否存在:exists name 移动key到指定库:move name ...

  7. ubuntu apt常用命令

    apt-cache search packagename 搜索包 apt-cache show packagename 获取包的相关信息,如说明.大小.版本等 apt-get install pack ...

  8. redis批量删除key 命令

    redis-cli -n 数据库编号 -a 密码 keys "过滤条件" | xargs redis-cli -n 数据库编号 -a 密码 del Demo: redis-cli ...

  9. ubuntu apt 主要命令及参数

    1. apt-cache search package 搜索安装包 2. apt-cache search all 搜索所有安装包 3. apt-cache show package 显示安装包信息 ...

  10. ubuntu apt 相关命令

    sudo apt-get update  更新源sudo apt-get install package 安装包sudo apt-get remove package 删除包sudo apt-cach ...

随机推荐

  1. 06003_redis在Linux上的安装

    1.redis-3.0.0.tar.gz下载链接:redis-3.0.0.tar.gz下载 密码:wpbu 2.安装redis编译的c环境,yum install gcc-c++ : 3.将redis ...

  2. Tomcat7后台通过get接收数据处理乱码

    Tomcat7后台通过get接收数据处理乱码 //因为tomcat7 默认将用get传来的数据用ISO-8859-1封装, //将ajax传过来的值解码,再转码,//因为tomcat7 默认将用get ...

  3. hdu2037今年暑假不AC(贪心,活动安排问题)

    今年暑假不AC Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total Submi ...

  4. hdu2147kiki's game(找规律)

    kiki's game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 40000/10000 K (Java/Others)Total ...

  5. ConfigHelpers

    --默认值可以不传 local ConfigHelpers = {} --设置物体高亮 target:设置对象 isLigth:是否高亮 seeThrough:是否穿透(默认为true,穿透) sta ...

  6. 微信小程序之注释出现的问题(.json不能注释)

    js的注释一般是双斜杠// 或者是/**/这样的快注释 .json是配置文件,其内容必须符合json格式内部不允许有注释. JSON有两种数据结构: 名称/值对的集合:key : value样式: 值 ...

  7. leetcode-回文链表

    请判断一个链表是否为回文链表. 示例 1: 输入: 1->2 输出: false 示例 2: 输入: 1->2->2->1 输出: true 进阶:你能否用 O(n) 时间复杂 ...

  8. Firefox-css-hack

    先记下:之后研究.试了一下,新版本FF-32.0效果不错,低版本还没测试. @-moz-document url-prefix() { .container { ... }}

  9. linux c语言 fork() 和 exec 函数的简介和用法

    linux c语言 fork() 和 exec 函数的简介和用法   假如我们在编写1个c程序时想调用1个shell脚本或者执行1段 bash shell命令, 应该如何实现呢? 其实在<std ...

  10. Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again YUM报错

        1.挂盘 ----- 2.# mount /dev/sr0 /media/ mount: block device /dev/sr0 is write-protected, mounting ...